diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 553ffa1..7c5df86 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -28,7 +28,7 @@ repos: - id: end-of-file-fixer - id: trailing-whitespace - repo: https://github.com/tox-dev/pyproject-fmt - rev: "v2.18.1" + rev: "v2.20.0" hooks: - id: pyproject-fmt - repo: https://github.com/astral-sh/uv-pre-commit diff --git a/pyproject.toml b/pyproject.toml index 0adab76..4a3be80 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -93,6 +93,22 @@ lint.isort.known-first-party = [ "aoiro", "tests" ] [tool.pyproject-fmt] max_supported_python = "3.14" +[tool.mypy] +check_untyped_defs = true +disallow_any_generics = true +disallow_incomplete_defs = true +disallow_untyped_defs = true +mypy_path = "src/" +no_implicit_optional = true +show_error_codes = true +warn_unreachable = true +warn_unused_ignores = true +exclude = [ + "docs/.*", + "setup.py", +] +overrides = [ { module = "tests.*", allow_untyped_defs = true }, { module = "docs.*", ignore_errors = true } ] + [tool.pytest] minversion = "9.0" addopts = [ "-v", "-Wonce", "-p no:doctest", "--cov=aoiro", "--cov-report=term", "--cov-report=xml" ] @@ -112,22 +128,6 @@ report.exclude_lines = [ "raise NotImplementedError", ] -[tool.mypy] -check_untyped_defs = true -disallow_any_generics = true -disallow_incomplete_defs = true -disallow_untyped_defs = true -mypy_path = "src/" -no_implicit_optional = true -show_error_codes = true -warn_unreachable = true -warn_unused_ignores = true -exclude = [ - "docs/.*", - "setup.py", -] -overrides = [ { module = "tests.*", allow_untyped_defs = true }, { module = "docs.*", ignore_errors = true } ] - [tool.semantic_release] version_toml = [ "pyproject.toml:project.version" ] version_variables = [