diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 7b688e2..9a1c3a1 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -23,7 +23,7 @@ repos: - id: end-of-file-fixer - id: trailing-whitespace - repo: https://github.com/tox-dev/pyproject-fmt - rev: v2.16.2 + rev: v2.21.1 hooks: - id: pyproject-fmt - repo: https://github.com/tox-dev/tox-ini-fmt @@ -47,7 +47,7 @@ repos: - id: django-upgrade args: [--target-version, '3.2'] - repo: https://github.com/psf/black-pre-commit-mirror - rev: 26.1.0 + rev: 26.3.1 hooks: - id: black - repo: https://github.com/adamchainz/blacken-docs @@ -57,12 +57,12 @@ repos: additional_dependencies: - black==23.1.0 - repo: https://github.com/pycqa/isort - rev: 8.0.1 + rev: 9.0.0a3 hooks: - id: isort name: isort (python) - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.19.1 + rev: v1.20.2 hooks: - id: mypy additional_dependencies: diff --git a/pyproject.toml b/pyproject.toml index 241f61e..3686b75 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -55,6 +55,18 @@ profile = "black" [tool.pyproject-fmt] max_supported_python = "3.13" +[tool.mypy] +enable_error_code = [ + "ignore-without-code", + "redundant-expr", + "truthy-bool", +] +mypy_path = "src/" +namespace_packages = false +strict = true +warn_unreachable = true +overrides = [ { module = "tests.*", allow_untyped_defs = true } ] + [tool.pytest] ini_options.addopts = """\ --strict-config @@ -77,17 +89,5 @@ paths.source = [ ] report.show_missing = true -[tool.mypy] -enable_error_code = [ - "ignore-without-code", - "redundant-expr", - "truthy-bool", -] -mypy_path = "src/" -namespace_packages = false -strict = true -warn_unreachable = true -overrides = [ { module = "tests.*", allow_untyped_defs = true } ] - [tool.rstcheck] report_level = "ERROR"