Skip to content

Commit

Permalink
Sort keys in toml files (#427)
Browse files Browse the repository at this point in the history
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
tkoyama010 and pre-commit-ci[bot] authored Nov 16, 2024
1 parent ddd2ca2 commit c536dab
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ repos:
hooks:
- id: taplo-format
# See options: https://taplo.tamasfe.dev/configuration/formatter-options.html
args: [--option, "reorder_arrays=true"]
args: [--option, "reorder_arrays=true", --option, "reorder_keys=true"]
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
Expand Down
28 changes: 14 additions & 14 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
[build-system]
build-backend = 'setuptools.build_meta'
requires = [
'gmsh<4.12.3',
'meshio<5.3.6',
Expand All @@ -8,11 +9,8 @@ requires = [
'setuptools<69.0.4',
'shapely<2.0.6',
]
build-backend = 'setuptools.build_meta'

[project]
name = "scikit-gmsh"
dynamic = ["readme", "version"]
dependencies = [
'gmsh<4.12.3',
'meshio<5.3.6',
Expand All @@ -21,10 +19,11 @@ dependencies = [
'scooby<0.9.3',
'shapely<2.0.6',
]
dynamic = ["readme", "version"]
name = "scikit-gmsh"
requires-python = '>=3.9'

[project.optional-dependencies]
test = ['pytest==8.0.0']
docs = [
'myst-parser==4.0.0',
'sphinx-book-theme==1.1.3',
Expand All @@ -34,27 +33,28 @@ docs = [
'sphinx-toolbox==3.8.0',
'sphinx==8.0.2',
]
test = ['pytest==8.0.0']

[tool.mypy]
enable_error_code = ["ignore-without-code", "redundant-expr", "truthy-bool"]
ignore_missing_imports = true
strict = true
warn_unreachable = true
enable_error_code = ["ignore-without-code", "redundant-expr", "truthy-bool"]

[tool.poetry]
name = "scikit-gmsh"
readme = "README.md"
authors = ["Tetsuo Koyama"]
description = "PyVista accessors for Gmsh to generate 3D finite element mesh"
name = "scikit-gmsh"
readme = "README.md"
version = "0.0.0"

[tool.pytest.ini_options]
minversion = "6.0"
addopts = ["--showlocals", "--strict-config", "--strict-markers", "-ra"]
xfail_strict = true
filterwarnings = ["error", 'ignore::DeprecationWarning']
log_cli_level = "info"
minversion = "6.0"
testpaths = ["tests"]
xfail_strict = true

[tool.ruff]
line-length = 150
Expand All @@ -63,23 +63,23 @@ line-length = 150
docstring-code-format = true

[tool.ruff.lint]
select = ["ALL"]
ignore = ["COM812", "D203", "D212", "ISC001"]
select = ["ALL"]

[tool.ruff.lint.isort]
force-sort-within-sections = true
combine-as-imports = true
required-imports = ["from __future__ import annotations"]
force-single-line = true
force-sort-within-sections = true
required-imports = ["from __future__ import annotations"]

[tool.ruff.lint.per-file-ignores]
"docs/**" = ["INP001"]
"tests/**" = ["INP001", "S101"]
"examples/**" = ["D205", "D400", "D415", "INP001", "T201"]
"tests/**" = ["INP001", "S101"]

[tool.ruff.lint.pyupgrade]
keep-runtime-typing = true

[tool.setuptools.dynamic]
version = { attr = 'skgmsh.__version__' }
readme = { file = "README.md", content-type = "text/markdown" }
version = { attr = 'skgmsh.__version__' }

0 comments on commit c536dab

Please sign in to comment.