Skip to content

Commit e6f24ed

Browse files
[pre-commit.ci] pre-commit autoupdate (#13557)
* [pre-commit.ci] pre-commit autoupdate updates: - [github.com/astral-sh/ruff-pre-commit: v0.11.13 → v0.12.0](astral-sh/ruff-pre-commit@v0.11.13...v0.12.0) - [github.com/pre-commit/mirrors-mypy: v1.16.0 → v1.16.1](pre-commit/mirrors-mypy@v1.16.0...v1.16.1) * Disable ruff PLC0415 / pylint import-outside-toplevel * Also disable eq-without-hash * Fix the RUF28 at an acceptable cost * [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: Pierre Sassoulas <[email protected]>
1 parent ecc55b4 commit e6f24ed

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
repos:
22
- repo: https://github.com/astral-sh/ruff-pre-commit
3-
rev: "v0.11.13"
3+
rev: "v0.12.0"
44
hooks:
55
- id: ruff
66
args: ["--fix"]
@@ -32,7 +32,7 @@ repos:
3232
hooks:
3333
- id: python-use-type-annotations
3434
- repo: https://github.com/pre-commit/mirrors-mypy
35-
rev: v1.16.0
35+
rev: v1.16.1
3636
hooks:
3737
- id: mypy
3838
files: ^(src/|testing/|scripts/)

pyproject.toml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@ lint.ignore = [
145145
# pylint ignore
146146
"PLC0105", # `TypeVar` name "E" does not reflect its covariance;
147147
"PLC0414", # Import alias does not rename original package
148+
"PLC0415", # import should be at top level of package
148149
"PLR0124", # Name compared with itself
149150
"PLR0133", # Two constants compared in a comparison (lots of those in tests)
150151
"PLR0402", # Use `from x.y import z` in lieu of alias
@@ -157,6 +158,7 @@ lint.ignore = [
157158
"PLR5501", # Use `elif` instead of `else` then `if`
158159
"PLW0120", # remove the else and dedent its contents
159160
"PLW0603", # Using the global statement
161+
"PLW1641", # Does not implement the __hash__ method
160162
"PLW2901", # for loop variable overwritten by assignment target
161163
# ruff ignore
162164
"RUF012", # Mutable class attributes should be annotated with `typing.ClassVar`
@@ -240,13 +242,13 @@ disable = [
240242
"else-if-used", # not activated by default, PLR5501 disabled in ruff
241243
"empty-comment", # not activated by default, PLR2044 disabled in ruff
242244
"eval-used",
243-
"eq-without-hash",
245+
"eq-without-hash", # PLW1641 disabled in ruff
244246
"exec-used",
245247
"expression-not-assigned",
246248
"fixme",
247249
"global-statement", # PLW0603 disabled in ruff
248250
"import-error",
249-
"import-outside-toplevel",
251+
"import-outside-toplevel", # PLC0415 disabled in ruff
250252
"import-private-name",
251253
"inconsistent-return-statements",
252254
"invalid-bool-returned",

testing/test_assertrewrite.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2197,9 +2197,9 @@ def test_simple():
21972197
),
21982198
),
21992199
)
2200-
# fmt: on
22012200
def test_get_assertion_exprs(src, expected) -> None:
22022201
assert _get_assertion_exprs(src) == expected
2202+
# fmt: on
22032203

22042204

22052205
def test_try_makedirs(monkeypatch, tmp_path: Path) -> None:

0 commit comments

Comments
 (0)