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
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ ci:

repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.14.6
rev: v0.14.8
hooks:
- id: ruff-check
args: [--fix]

- repo: https://github.com/psf/black-pre-commit-mirror
rev: 25.11.0
rev: 25.12.0
hooks:
- id: black
args: [--preview]
Expand All @@ -39,7 +39,7 @@ repos:
- id: isort

- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.18.2
rev: v1.19.0
hooks:
- id: mypy
# uses py311 syntax, mypy configured for py310
Expand Down
9 changes: 8 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,14 @@ skip_glob = "tests/*_files/*"

[tool.mypy]
check_untyped_defs = true
disable_error_code = ["no-untyped-def", "misc", "no-untyped-call", "no-any-return"]
disable_error_code = [
"no-untyped-def",
"no-untyped-call",
"no-any-return",
"misc",
# things like `@pytest.fixture` are untyped in pre-commit
"untyped-decorator"
]
python_version = "3.10"
strict = true
warn_unreachable = true
Expand Down
2 changes: 1 addition & 1 deletion tests/eval_files/async400_py311.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
e, f = 1, 2
e.anything # safe
except* TypeError as e:
(e, f) = (1, 2)
e, f = (1, 2)
e.anything # safe
except* ValueError as e:
with blah as e:
Expand Down
Loading