diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 4e3cde7..7b688e2 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -23,11 +23,11 @@ repos: - id: end-of-file-fixer - id: trailing-whitespace - repo: https://github.com/tox-dev/pyproject-fmt - rev: v2.11.0 + rev: v2.16.2 hooks: - id: pyproject-fmt - repo: https://github.com/tox-dev/tox-ini-fmt - rev: 1.7.0 + rev: 1.7.1 hooks: - id: tox-ini-fmt - repo: https://github.com/rstcheck/rstcheck @@ -37,17 +37,17 @@ repos: additional_dependencies: - tomli==2.0.1 - repo: https://github.com/asottile/pyupgrade - rev: v3.21.0 + rev: v3.21.2 hooks: - id: pyupgrade args: [--py38-plus] - repo: https://github.com/adamchainz/django-upgrade - rev: 1.29.1 + rev: 1.30.0 hooks: - id: django-upgrade args: [--target-version, '3.2'] - repo: https://github.com/psf/black-pre-commit-mirror - rev: 25.9.0 + rev: 26.1.0 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: 7.0.0 + rev: 8.0.1 hooks: - id: isort name: isort (python) - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.18.2 + rev: v1.19.1 hooks: - id: mypy additional_dependencies: diff --git a/pyproject.toml b/pyproject.toml index d7ef639..241f61e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -55,31 +55,27 @@ profile = "black" [tool.pyproject-fmt] max_supported_python = "3.13" -[tool.pytest.ini_options] -addopts = """\ +[tool.pytest] +ini_options.addopts = """\ --strict-config --strict-markers --ds=tests.settings """ -django_find_project = false -xfail_strict = true +ini_options.django_find_project = false +ini_options.xfail_strict = true -[tool.coverage.run] -branch = true -parallel = true -source = [ +[tool.coverage] +run.branch = true +run.parallel = true +run.source = [ "django_sys_indicator", "tests", ] - -[tool.coverage.paths] -source = [ +paths.source = [ "src", ".tox/**/site-packages", ] - -[tool.coverage.report] -show_missing = true +report.show_missing = true [tool.mypy] enable_error_code = [ @@ -91,10 +87,7 @@ mypy_path = "src/" namespace_packages = false strict = true warn_unreachable = true - -[[tool.mypy.overrides]] -module = "tests.*" -allow_untyped_defs = true +overrides = [ { module = "tests.*", allow_untyped_defs = true } ] [tool.rstcheck] report_level = "ERROR"