diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 3eed040..003cba9 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,10 +1,10 @@ repos: - repo: https://github.com/tox-dev/pyproject-fmt - rev: "2.1.1" + rev: "2.1.3" hooks: - id: pyproject-fmt - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.4.4 + rev: v0.4.7 hooks: - id: ruff-format - id: ruff diff --git a/pyproject.toml b/pyproject.toml index c36ffcb..f871097 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -183,6 +183,15 @@ src = [ lint.select = [ "ALL", ] +lint.ignore = [ + "ANN", # Mypy is better at this. + "C901", # Leave complexity to me. + "COM812", # conflicts with formatter + "D", # We have different ideas about docstrings. + "ISC001", # conflicts with formatter + "PLR0912", # Leave complexity to me. + "TRY301", # Raise in try blocks can totally make sense. +] lint.per-file-ignores."tests/*" = [ "PLC1901", # empty strings are falsey, but are less specific in tests "PT005", # we use always underscores and explicit names @@ -194,16 +203,6 @@ lint.unfixable = [ ] lint.isort.lines-after-imports = 2 lint.isort.lines-between-types = 1 -lint.ignore = [ - "ANN", # Mypy is better at this. - "C901", # Leave complexity to me. - "COM812", # conflicts with formatter - "D", # We have different ideas about docstrings. - "ISC001", # conflicts with formatter - "PLR0912", # Leave complexity to me. - "TRY301", # Raise in try blocks can totally make sense. -] -lint.ignore-init-module-imports = true [tool.pytest.ini_options] minversion = "6.0"