Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ repos:
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/crate-ci/typos
rev: 5745f2a8dd91cd7b684680e2e10a2b388ba6e5cf # frozen: v1
rev: f06b85043a5ab470afbb0a5592456e733243983a # frozen: v1
hooks:
- id: typos
- repo: https://github.com/tox-dev/pyproject-fmt
rev: 51905ea0435df7e0b1dacf8108081e6a14b620bd # frozen: v2.16.2
rev: 6e10264313f53d6247a8b1b984f5b5ccf50ba539 # frozen: v2.21.0
hooks:
- id: pyproject-fmt
- repo: https://github.com/tox-dev/tox-ini-fmt
Expand Down Expand Up @@ -50,12 +50,12 @@ repos:
additional_dependencies:
- black==25.1.0
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: a27a2e47c7751b639d2b5badf0ef6ff11fee893f # frozen: v0.15.4
rev: c60c980e561ed3e73101667fe8365c609d19a438 # frozen: v0.15.9
hooks:
- id: ruff-check
args: [ --fix ]
- id: ruff-format
- repo: https://github.com/pre-commit/mirrors-mypy
rev: a66e98df7b4aeeb3724184b332785976d062b92e # frozen: v1.19.1
rev: 8e5c80792e2ec0c87804d8ef915bf35e2caea6da # frozen: v1.20.0
hooks:
- id: mypy
34 changes: 17 additions & 17 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,23 @@ lint.isort.required-imports = [ "from __future__ import annotations" ]
[tool.pyproject-fmt]
max_supported_python = "3.14"

[tool.mypy]
enable_error_code = [
"ignore-without-code",
"redundant-expr",
"truthy-bool",
]
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
warn_unreachable = true
warn_unused_ignores = true
overrides = [ { module = "tests.*", allow_untyped_defs = true } ]

[tool.pytest]
ini_options.addopts = """\
--strict-config
Expand All @@ -154,23 +171,6 @@ report.show_missing = true
report.skip_covered = true
report.skip_empty = true

[tool.mypy]
enable_error_code = [
"ignore-without-code",
"redundant-expr",
"truthy-bool",
]
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
warn_unreachable = true
warn_unused_ignores = true
overrides = [ { module = "tests.*", allow_untyped_defs = true } ]

[tool.rstcheck]
ignore_directives = [
"automodule",
Expand Down
Loading