diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 755acec..9ba5f9b 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -38,7 +38,7 @@ repos: - id: end-of-file-fixer - id: trailing-whitespace - repo: https://github.com/tox-dev/pyproject-fmt - rev: "v2.18.1" + rev: "v2.19.0" hooks: - id: pyproject-fmt - repo: https://github.com/34j/sync-python-matrix diff --git a/pyproject.toml b/pyproject.toml index 47d2a63..1706a75 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -95,6 +95,22 @@ lint.per-file-ignores."tests/**/*" = [ ] lint.isort.known-first-party = [ "array_api", "tests" ] +[tool.mypy] +check_untyped_defs = true +disallow_any_generics = false +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] ini_options.addopts = """\ -v @@ -115,22 +131,6 @@ report.exclude_lines = [ "raise NotImplementedError", ] -[tool.mypy] -check_untyped_defs = true -disallow_any_generics = false -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 = [