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
2 changes: 1 addition & 1 deletion .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ uv run ruff format
Run type checking:

```sh
uv run mypy .
uv run pyright .
```

## Build
Expand Down
5 changes: 0 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -146,11 +146,6 @@ venv.bak/
# mkdocs documentation
/site

# mypy
.mypy_cache/
.dmypy.json
dmypy.json

# Pyre type checker
.pyre/

Expand Down
11 changes: 7 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,11 @@ repos:
args: [--fix]
- id: ruff-format

- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.19.1
- repo: local
hooks:
- id: mypy
entry: bash -c 'uv run mypy .'
- id: pyright
name: pyright
entry: uv run pyright .
language: system
types: [python]
pass_filenames: false
10 changes: 3 additions & 7 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ docs = [
"pdoc==16.0.0",
]
lint = [
"mypy==2.3.0",
"pre-commit==4.6.0",
"pyright==1.1.411",
"ruff==0.15.21",
]
test = [
Expand Down Expand Up @@ -53,12 +53,8 @@ ignore = [
"E501", # line too long (handled by ruff)
]

[tool.mypy]
strict = true
ignore_missing_imports = true
exclude = [
'^tests/.*'
]
[tool.pyright]
typeCheckingMode = "strict"

[tool.coverage.run]
omit = [
Expand Down
Loading