Skip to content

Commit d956e03

Browse files
[pre-commit.ci] pre-commit autoupdate (#10556)
* [pre-commit.ci] pre-commit autoupdate updates: - [github.com/astral-sh/ruff-pre-commit: v0.12.12 → v0.13.0](astral-sh/ruff-pre-commit@v0.12.12...v0.13.0) * Fix ruff issues + remove disable check from ignore list --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Marc Mueller <[email protected]>
1 parent f0547a2 commit d956e03

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ repos:
2020
doc/data/messages/m/missing-final-newline/bad/crlf.py
2121
)$
2222
- repo: https://github.com/astral-sh/ruff-pre-commit
23-
rev: "v0.12.12"
23+
rev: "v0.13.0"
2424
hooks:
2525
- id: ruff-check
2626
args: ["--fix"]

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,6 @@ lint.ignore = [
176176
"PTH207", # Replace `glob` with `Path.glob` or `Path.rglob`
177177
"PTH208", # Use `pathlib.Path.iterdir()` instead"
178178
"RUF012", # mutable default values in class attributes
179-
"UP038", # Use `X | Y` in `isinstance` call instead of `(X, Y)`
180179
]
181180
lint.pydocstyle.convention = "pep257"
182181

tests/testutils/test_lint_module_output_update.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ def _assert_behavior_is_correct(
106106
elif "ok_test" in new_path_str:
107107
if any(f"{x}_output" in new_path_str for x in ("wrong", "no", "broken")):
108108
with pytest.raises(
109-
AssertionError, match='Wrong output for "exec_used.txt"'
109+
AssertionError, match=r'Wrong output for "exec_used\.txt"'
110110
):
111111
_lint_module.runTest()
112112
elif "ok_output" in new_path_str:

0 commit comments

Comments
 (0)