diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index ffc4abd..51087b9 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -17,11 +17,11 @@ repos: - id: end-of-file-fixer - id: trailing-whitespace - repo: https://github.com/crate-ci/typos - rev: 672d45b4e77223b8fcf1b4b8560bf987f0839902 # frozen: v1 + rev: 5745f2a8dd91cd7b684680e2e10a2b388ba6e5cf # frozen: v1 hooks: - id: typos - repo: https://github.com/tox-dev/pyproject-fmt - rev: 2a892e1706c9e0e1f853be3f34a9e04f0d5c86d9 # frozen: v2.12.1 + rev: 51905ea0435df7e0b1dacf8108081e6a14b620bd # frozen: v2.16.2 hooks: - id: pyproject-fmt - repo: https://github.com/tox-dev/tox-ini-fmt @@ -41,7 +41,7 @@ repos: additional_dependencies: - black==25.1.0 - repo: https://github.com/astral-sh/ruff-pre-commit - rev: 45ef068da5f21267bb2a7ec4a623092959f09ce5 # frozen: v0.14.14 + rev: a27a2e47c7751b639d2b5badf0ef6ff11fee893f # frozen: v0.15.4 hooks: - id: ruff-check args: [ --fix ] diff --git a/pyproject.toml b/pyproject.toml index acc3643..b483786 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -94,29 +94,25 @@ lint.isort.required-imports = [ "from __future__ import annotations" ] [tool.pyproject-fmt] max_supported_python = "3.14" -[tool.pytest.ini_options] -addopts = """\ +[tool.pytest] +ini_options.addopts = """\ --strict-config --strict-markers """ -xfail_strict = true +ini_options.xfail_strict = true -[tool.coverage.paths] -source = [ - "src", - ".tox/**/site-packages", -] - -[tool.coverage.report] -show_missing = true - -[tool.coverage.run] -branch = true -parallel = true -source = [ +[tool.coverage] +run.branch = true +run.parallel = true +run.source = [ "pytest_randomly", "tests", ] +paths.source = [ + "src", + ".tox/**/site-packages", +] +report.show_missing = true [tool.mypy] enable_error_code = [ @@ -128,10 +124,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"