diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index cdccaeb1..bdfc9b4e 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -34,7 +34,7 @@ repos: - tomli - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.4.3 + rev: v0.4.4 hooks: - id: ruff @@ -44,11 +44,11 @@ repos: - id: black - repo: https://github.com/tox-dev/pyproject-fmt - rev: 1.8.0 + rev: 2.0.4 hooks: - id: pyproject-fmt - repo: https://github.com/abravalheri/validate-pyproject - rev: v0.16 + rev: v0.17 hooks: - id: validate-pyproject diff --git a/pyproject.toml b/pyproject.toml index 7cf0d632..69a18cef 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -3,37 +3,37 @@ target-version = "py37" [tool.ruff.lint] select = [ - "A", # flake8-builtins - "B", # flake8-bugbear - "BLE", # flake8-blind-except - "C4", # flake8-comprehensions - "C90", # McCabe cyclomatic complexity - "E", # pycodestyle - "ERA", # eradicate - "EXE", # flake8-executable - "F", # Pyflakes - "G", # flake8-logging-format - "I", # isort - "ICN", # flake8-import-conventions - "INP", # flake8-no-pep420 - "INT", # flake8-gettext - "ISC", # flake8-implicit-str-concat - "N", # pep8-naming - "PGH", # pygrep-hooks - "PIE", # flake8-pie - "PL", # Pylint - "PT", # flake8-pytest-style - "PTH", # flake8-use-pathlib - "PYI", # flake8-pyi - "RET", # flake8-return - "RSE", # flake8-raise - "RUF", # Ruff-specific rules - "S", # flake8-bandit - "T10", # flake8-debugger - "TCH", # flake8-type-checking - "TID", # flake8-tidy-imports - "W", # pycodestyle - "YTT", # flake8-2020 + "A", # flake8-builtins + "B", # flake8-bugbear + "BLE", # flake8-blind-except + "C4", # flake8-comprehensions + "C90", # McCabe cyclomatic complexity + "E", # pycodestyle + "ERA", # eradicate + "EXE", # flake8-executable + "F", # Pyflakes + "G", # flake8-logging-format + "I", # isort + "ICN", # flake8-import-conventions + "INP", # flake8-no-pep420 + "INT", # flake8-gettext + "ISC", # flake8-implicit-str-concat + "N", # pep8-naming + "PGH", # pygrep-hooks + "PIE", # flake8-pie + "PL", # Pylint + "PT", # flake8-pytest-style + "PTH", # flake8-use-pathlib + "PYI", # flake8-pyi + "RET", # flake8-return + "RSE", # flake8-raise + "RUF", # Ruff-specific rules + "S", # flake8-bandit + "T10", # flake8-debugger + "TCH", # flake8-type-checking + "TID", # flake8-tidy-imports + "W", # pycodestyle + "YTT", # flake8-2020 # "ANN", # flake8-annotations # "ARG", # flake8-unused-arguments # "COM", # flake8-commas @@ -77,15 +77,20 @@ ignore = [ max-complexity = 16 [tool.ruff.lint.pylint] -allow-magic-value-types = ["int", "str"] +allow-magic-value-types = [ + "int", + "str", +] max-args = 12 max-branches = 20 max-returns = 7 max-statements = 54 [tool.ruff.lint.per-file-ignores] -"tests/*" = ["S101"] +"tests/*" = [ + "S101", +] [tool.codespell] ignore-words-list = "dekstop,nwe,wahtever,yello" -skip="./.*" +skip = "./.*"