Skip to content

Commit 9ffbeb2

Browse files
authored
Merge pull request #4756 from AlexWaygood/update-ruff
Bump Ruff to 0.8.0
2 parents 61543ba + 96e9a67 commit 9ffbeb2

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

.pre-commit-config.yaml

+1-1
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.8.0
44
hooks:
55
- id: ruff
66
args: [--fix, --unsafe-fixes]

pyproject.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,8 @@ check = [
114114

115115
# local
116116

117-
# changed defaults for PT001 and PT023 astral-sh/ruff#13292
118-
"ruff >= 0.7.0; sys_platform != 'cygwin'",
117+
# Removal of deprecated UP027, PT004 & PT005 astral-sh/ruff#14383
118+
"ruff >= 0.8.0; sys_platform != 'cygwin'",
119119
]
120120

121121
cover = [

ruff.toml

-3
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,12 @@ extend-select = [
2929
]
3030
ignore = [
3131
"PERF203", # try-except-in-loop, micro-optimisation with many false-positive. Worth checking but don't block CI
32-
"PT004", # deprecated https://github.com/astral-sh/ruff/issues/8796#issuecomment-2057143531
33-
"PT005", # deprecated https://github.com/astral-sh/ruff/issues/8796#issuecomment-2057143531
3432
"PT007", # temporarily disabled, TODO: configure and standardize to preference
3533
"PT011", # temporarily disabled, TODO: tighten expected error
3634
"PT012", # pytest-raises-with-multiple-statements, avoid extra dummy methods for a few lines, sometimes we explicitly assert in case of no error
3735
"TRY003", # raise-vanilla-args, avoid multitude of exception classes
3836
"TRY301", # raise-within-try, it's handy
3937
"UP015", # redundant-open-modes, explicit is preferred
40-
"UP027", # unpacked-list-comprehension, is actually slower for cases relevant to unpacking, set for deprecation: https://github.com/astral-sh/ruff/issues/12754
4138
"UP030", # temporarily disabled
4239
"UP031", # temporarily disabled
4340
"UP032", # temporarily disabled

0 commit comments

Comments
 (0)