Skip to content

Commit 61ee52b

Browse files
[pre-commit.ci] pre-commit autoupdate (#420)
* [pre-commit.ci] pre-commit autoupdate updates: - [github.com/astral-sh/ruff-pre-commit: v0.14.6 → v0.14.8](astral-sh/ruff-pre-commit@v0.14.6...v0.14.8) - [github.com/psf/black-pre-commit-mirror: 25.11.0 → 25.12.0](psf/black-pre-commit-mirror@25.11.0...25.12.0) - [github.com/pre-commit/mirrors-mypy: v1.18.2 → v1.19.0](pre-commit/mirrors-mypy@v1.18.2...v1.19.0) * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Adjust for new `untyped-decorator` error code from mypy * Turns out we need misc for other things: ``` tests/eval_files/exception_suppress_context_manager.py:139: error: Cannot assign to a type [misc] tests/eval_files/exception_suppress_context_manager.py:139: note: Error code "misc" not covered by "type: ignore" comment tests/eval_files/async124.py:87: error: Single overload definition, multiple required [misc] tests/eval_files/async104.py:194: error: "return" outside function [misc] tests/eval_files/async104.py:198: error: "return" outside function [misc] tests/autofix_files/exception_suppress_context_manager.py:152: error: Cannot assign to a type [misc] tests/autofix_files/exception_suppress_context_manager.py:152: note: Error code "misc" not covered by "type: ignore" comment tests/autofix_files/async124.py:96: error: Single overload definition, multiple required [misc] flake8_async/visitors/flake8asyncvisitor.py:160: error: Class cannot subclass "CSTTransformer" (has type "Any") [misc] flake8_async/visitors/visitor91x.py:237: error: Class cannot subclass "CSTTransformer" (has type "Any") [misc] ``` * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: A5rocks <[email protected]>
1 parent 2117139 commit 61ee52b

File tree

3 files changed

+12
-5
lines changed

3 files changed

+12
-5
lines changed

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@ ci:
99

1010
repos:
1111
- repo: https://github.com/astral-sh/ruff-pre-commit
12-
rev: v0.14.6
12+
rev: v0.14.8
1313
hooks:
1414
- id: ruff-check
1515
args: [--fix]
1616

1717
- repo: https://github.com/psf/black-pre-commit-mirror
18-
rev: 25.11.0
18+
rev: 25.12.0
1919
hooks:
2020
- id: black
2121
args: [--preview]
@@ -39,7 +39,7 @@ repos:
3939
- id: isort
4040

4141
- repo: https://github.com/pre-commit/mirrors-mypy
42-
rev: v1.18.2
42+
rev: v1.19.0
4343
hooks:
4444
- id: mypy
4545
# uses py311 syntax, mypy configured for py310

pyproject.toml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,14 @@ skip_glob = "tests/*_files/*"
5353

5454
[tool.mypy]
5555
check_untyped_defs = true
56-
disable_error_code = ["no-untyped-def", "misc", "no-untyped-call", "no-any-return"]
56+
disable_error_code = [
57+
"no-untyped-def",
58+
"no-untyped-call",
59+
"no-any-return",
60+
"misc",
61+
# things like `@pytest.fixture` are untyped in pre-commit
62+
"untyped-decorator"
63+
]
5764
python_version = "3.10"
5865
strict = true
5966
warn_unreachable = true

tests/eval_files/async400_py311.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
e, f = 1, 2
3434
e.anything # safe
3535
except* TypeError as e:
36-
(e, f) = (1, 2)
36+
e, f = (1, 2)
3737
e.anything # safe
3838
except* ValueError as e:
3939
with blah as e:

0 commit comments

Comments
 (0)