diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 779ed33e9d..98bd4e1ff6 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -66,7 +66,7 @@ repos: rev: v2.14.0 hooks: - id: pretty-format-toml - args: [--autofix, --indent, '4'] + args: [--autofix, --indent, '4', --no-sort] - repo: https://github.com/codespell-project/codespell rev: v2.3.0 hooks: diff --git a/tools/schemacode/pyproject.toml b/tools/schemacode/pyproject.toml index 7a7dce0db7..9068e6d471 100644 --- a/tools/schemacode/pyproject.toml +++ b/tools/schemacode/pyproject.toml @@ -59,6 +59,22 @@ bst = "bidsschematools.__main__:cli" [project.urls] Homepage = "https://github.com/bids-standard/bids-specification" +[tool.setuptools.dynamic] +version = {file = "bidsschematools/data/schema/SCHEMA_VERSION"} + +[tool.setuptools.package-data] +bidsschematools = [ + "data/metaschema.json", + "data/schema/BIDS_VERSION", + "data/schema/SCHEMA_VERSIO", + "data/schema/**/*.yaml", + "tests/data/**/*", + "tests/data/**/.bidsignore" +] + +[tool.setuptools.packages.find] +include = ["bidsschematools*"] + [tool.black] line-length = 99 include = '\.pyi?$' @@ -97,19 +113,3 @@ markers = [ ] minversion = "6.0" xfail_strict = true - -[tool.setuptools.dynamic] -version = {file = "bidsschematools/data/schema/SCHEMA_VERSION"} - -[tool.setuptools.package-data] -bidsschematools = [ - "data/metaschema.json", - "data/schema/BIDS_VERSION", - "data/schema/SCHEMA_VERSIO", - "data/schema/**/*.yaml", - "tests/data/**/*", - "tests/data/**/.bidsignore" -] - -[tool.setuptools.packages.find] -include = ["bidsschematools*"]