Skip to content

[pre-commit.ci] pre-commit autoupdate #13557

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Jun 25, 2025
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
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: "v0.11.13"
rev: "v0.12.0"
hooks:
- id: ruff
args: ["--fix"]
Expand Down Expand Up @@ -32,7 +32,7 @@ repos:
hooks:
- id: python-use-type-annotations
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.16.0
rev: v1.16.1
hooks:
- id: mypy
files: ^(src/|testing/|scripts/)
Expand Down
6 changes: 4 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@ lint.ignore = [
# pylint ignore
"PLC0105", # `TypeVar` name "E" does not reflect its covariance;
"PLC0414", # Import alias does not rename original package
"PLC0415", # import should be at top level of package
"PLR0124", # Name compared with itself
"PLR0133", # Two constants compared in a comparison (lots of those in tests)
"PLR0402", # Use `from x.y import z` in lieu of alias
Expand All @@ -157,6 +158,7 @@ lint.ignore = [
"PLR5501", # Use `elif` instead of `else` then `if`
"PLW0120", # remove the else and dedent its contents
"PLW0603", # Using the global statement
"PLW1641", # Does not implement the __hash__ method
"PLW2901", # for loop variable overwritten by assignment target
# ruff ignore
"RUF012", # Mutable class attributes should be annotated with `typing.ClassVar`
Expand Down Expand Up @@ -240,13 +242,13 @@ disable = [
"else-if-used", # not activated by default, PLR5501 disabled in ruff
"empty-comment", # not activated by default, PLR2044 disabled in ruff
"eval-used",
"eq-without-hash",
"eq-without-hash", # PLW1641 disabled in ruff
"exec-used",
"expression-not-assigned",
"fixme",
"global-statement", # PLW0603 disabled in ruff
"import-error",
"import-outside-toplevel",
"import-outside-toplevel", # PLC0415 disabled in ruff
"import-private-name",
"inconsistent-return-statements",
"invalid-bool-returned",
Expand Down
2 changes: 1 addition & 1 deletion testing/test_assertrewrite.py
Original file line number Diff line number Diff line change
Expand Up @@ -2197,9 +2197,9 @@ def test_simple():
),
),
)
# fmt: on
def test_get_assertion_exprs(src, expected) -> None:
assert _get_assertion_exprs(src) == expected
# fmt: on


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