diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 3bfe680c..8a4c6aba 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,6 +1,6 @@ repos: - repo: https://github.com/pre-commit/mirrors-mypy - rev: "v1.11.2" + rev: v1.11.2 hooks: - id: mypy additional_dependencies: @@ -8,7 +8,7 @@ repos: exclude: docs/.*|tests/.*|noxfile.py - repo: https://github.com/pre-commit/pre-commit-hooks - rev: "v4.6.0" + rev: v4.6.0 hooks: - id: check-builtin-literals - id: check-added-large-files @@ -21,7 +21,7 @@ repos: - id: trailing-whitespace - repo: https://github.com/adamchainz/blacken-docs - rev: "1.18.0" + rev: 1.18.0 hooks: - id: blacken-docs diff --git a/pyproject.toml b/pyproject.toml index b97ad293..c67818d6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -29,7 +29,6 @@ dynamic = [ [tool.ruff] fix = true -src = ["src"] extend-exclude = [ "noxfile.py", "docs/*" @@ -41,10 +40,21 @@ select = [ "F", "W", "I", + "ISC", "D", ] ignore = [ - "D105", "D203", "D213", "E501" + "D105", + "D203", + "D213", + # https://docs.astral.sh/ruff/formatter/#conflicting-lint-rules + "W191", + "E111", + "E114", + "E117", + "ISC001", + "ISC002", + "E501", ] [tool.ruff.lint.per-file-ignores] @@ -64,6 +74,7 @@ exclude_lines = [ [tool.mypy] files = "src,tools" strict = true +warn_unreachable = true enable_error_code = [ "ignore-without-code", "redundant-expr",