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
9 changes: 9 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,15 @@ repos:
args: [--fix]
- id: ruff-format

- repo: local
hooks:
- id: mypy
name: mypy
entry: uv run dmypy run -- src tests
language: system
types: [python]
pass_filenames: false

- repo: https://github.com/codespell-project/codespell
rev: v2.3.0
hooks:
Expand Down
10 changes: 0 additions & 10 deletions mypy.ini

This file was deleted.

11 changes: 9 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,15 @@ target-version = "py311"
select = ["E", "F", "I", "UP", "B", "SIM", "PERF", "RUF", "ANN"]

[tool.mypy]

# see mypy.ini
python_version = "3.11"
strict = true
warn_unused_configs = true
warn_redundant_casts = true
disallow_any_generics = true
disallow_subclassing_any = true
no_implicit_optional = true
show_error_codes = true
exclude = "(?x)(^third_party/|^packaging/)"
Comment thread
steven-cutting marked this conversation as resolved.

[tool.pytest.ini_options]
addopts = "-q --disable-warnings"
Expand Down