diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 30a93ef..80ee919 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -22,7 +22,7 @@ repos: - id: end-of-file-fixer - id: trailing-whitespace - repo: https://github.com/tox-dev/pyproject-fmt - rev: v2.21.1 + rev: v2.23.0 hooks: - id: pyproject-fmt - repo: https://github.com/asottile/setup-cfg-fmt @@ -44,7 +44,7 @@ repos: - id: pyupgrade args: [--py310-plus] - repo: https://github.com/psf/black-pre-commit-mirror - rev: 26.3.1 + rev: 26.5.1 hooks: - id: black - repo: https://github.com/adamchainz/blacken-docs @@ -54,11 +54,11 @@ repos: additional_dependencies: - black==23.12.0 - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.20.2 + rev: v2.1.0 hooks: - id: mypy - repo: https://github.com/astral-sh/ruff-pre-commit - rev: "v0.15.12" + rev: "v0.15.15" hooks: - id: ruff args: [--fix, --exit-non-zero-on-fix] diff --git a/pyproject.toml b/pyproject.toml index 69c1f8d..67d3c2e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -92,27 +92,27 @@ select = [ ] [tool.mypy] -check_untyped_defs = true -disallow_any_generics = true -disallow_incomplete_defs = true -disallow_untyped_defs = true mypy_path = "src/" namespace_packages = false -no_implicit_optional = true -show_error_codes = true -warn_unreachable = true +disallow_any_generics = true +disallow_untyped_defs = true +disallow_incomplete_defs = true +check_untyped_defs = true warn_unused_ignores = true +warn_unreachable = true overrides = [ { module = "tests.*", allow_untyped_defs = true } ] +no_implicit_optional = true +show_error_codes = true [tool.pytest] -DJANGO_SETTINGS_MODULE = "tests.settings" -django_find_project = false ini_options.addopts = """\ --strict-config --strict-markers --ds=tests.settings """ ini_options.django_find_project = false +django_find_project = false +DJANGO_SETTINGS_MODULE = "tests.settings" [tool.coverage] run.branch = true