Skip to content

Commit 44f3dcb

Browse files
Hasnepofek
andauthored
Upgrade ruff in pre-commit to v0.14 (#889)
Co-authored-by: Ofek Lev <ofekmeister@gmail.com>
1 parent 546f21d commit 44f3dcb

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
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.7.1
3+
rev: v0.14.1
44
hooks:
55
- id: ruff
66
args: [ --fix ]

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[tool.ruff]
2-
exclude = [
2+
extend-exclude = [
33
"*.pyi",
44
"__init__.py",
55
"_version.py",

tests/test_mypy.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ def test_mypy():
3232
try:
3333
exec(check, {"typ": typ})
3434
except Exception:
35-
assert (
36-
False
37-
), f"Failed check at {PATH}:{lineno}: {check!r}, where 'typ' is {typ!r}"
35+
assert False, (
36+
f"Failed check at {PATH}:{lineno}: {check!r}, where 'typ' is {typ!r}"
37+
)
3838
elif "success" not in line.lower():
3939
assert False, line

tests/test_pyright.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,6 @@ def test_pyright():
3030
try:
3131
exec(check, {"typ": typ})
3232
except Exception:
33-
assert (
34-
False
35-
), f"Failed check at {PATH}:{lineno}: {check!r}, where 'typ' is {typ!r}"
33+
assert False, (
34+
f"Failed check at {PATH}:{lineno}: {check!r}, where 'typ' is {typ!r}"
35+
)

0 commit comments

Comments
 (0)