diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 6df62abd..eb864b6d 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -10,7 +10,7 @@ ci: repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: 3e8a8703264a2f4a69428a0aa4dcb512790b2c8c # v6.0.0 + rev: v6.0.0 # v6.0.0 hooks: - id: check-json types: [file] # override `types: [json]` @@ -24,33 +24,33 @@ repos: - id: end-of-file-fixer - id: trailing-whitespace - repo: https://github.com/tox-dev/pyproject-fmt - rev: a007bb7dd9043d022292401abc3061cb1906b4bc # v2.21.2 + rev: v2.23.0 # v2.21.2 hooks: - id: pyproject-fmt - repo: https://github.com/abravalheri/validate-pyproject - rev: 4b2e70d08cb2ccd26d1fba73588de41c7a5d50b7 # v0.25 + rev: v0.25 # v0.25 hooks: - id: validate-pyproject - repo: https://github.com/astral-sh/ruff-pre-commit - rev: 5e2fb545eba1ea9dc051f6f962d52fe8f76a9794 # v0.15.13 + rev: v0.15.15 # v0.15.13 hooks: - id: ruff-check args: [--fix, --exit-non-zero-on-fix] - id: ruff-format - repo: https://github.com/sphinx-contrib/sphinx-lint - rev: c883505f64b59c3c5c9375191e4ad9f98e727ccd # v1.0.2 + rev: v1.0.2 # v1.0.2 hooks: - id: sphinx-lint types: [rst] - repo: https://github.com/adamchainz/blacken-docs - rev: fda77690955e9b63c6687d8806bafd56a526e45f # 1.20.0 + rev: 1.20.0 # 1.20.0 hooks: - id: blacken-docs args: [--line-length=79] additional_dependencies: - black - repo: https://github.com/codespell-project/codespell - rev: 2ccb47ff45ad361a21071a7eedda4c37e6ae8c5a # v2.4.2 + rev: v2.4.2 # v2.4.2 hooks: - id: codespell args: [--toml pyproject.toml] diff --git a/docs/data-processing/serialisation-formats/toml/pyproject.toml b/docs/data-processing/serialisation-formats/toml/pyproject.toml index 0ea3af0e..e583d8be 100644 --- a/docs/data-processing/serialisation-formats/toml/pyproject.toml +++ b/docs/data-processing/serialisation-formats/toml/pyproject.toml @@ -6,12 +6,12 @@ line-length = 79 [tool.isort] atomic = true -force_grid_wrap = 0 +multi_line_output = 3 +use_parentheses = true include_trailing_comma = true +force_grid_wrap = 0 lines_after_imports = 2 lines_between_types = 1 -multi_line_output = 3 -not_skip = "__init__.py" -use_parentheses = true -known_first_party = [ "MY_FIRST_MODULE", "MY_SECOND_MODULE" ] known_third_party = [ "mpi4py", "numpy", "requests" ] +known_first_party = [ "MY_FIRST_MODULE", "MY_SECOND_MODULE" ] +not_skip = "__init__.py" diff --git a/pyproject.toml b/pyproject.toml index 451030a5..4b622509 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -153,5 +153,5 @@ lint.isort.lines-after-imports = 2 lint.isort.lines-between-types = 1 [tool.codespell] -skip = "*.csv, *.html, *.pdf, *.ipynb, ./docs/_build/*, ./styles/*" ignore-words-list = "AAS, ans, bund, comit, fo, Groth, nd, Ned, ORE, ore, Redict, redict, registr, reStructedText, splitted" +skip = "*.csv, *.html, *.pdf, *.ipynb, ./docs/_build/*, ./styles/*"