diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 39f9dbc..af66c97 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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] @@ -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 diff --git a/pyproject.toml b/pyproject.toml index 8fa5e89..8abb4db 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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 diff --git a/tests/eval_files/async400_py311.py b/tests/eval_files/async400_py311.py index f232398..c5fd633 100644 --- a/tests/eval_files/async400_py311.py +++ b/tests/eval_files/async400_py311.py @@ -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: