Skip to content

Commit 4d18871

Browse files
⬆️ UPGRADE: Autoupdate pre-commit config (#51707)
* ⬆️ UPGRADE: Autoupdate pre-commit config * silence new ruff codes --------- Co-authored-by: MarcoGorelli <[email protected]> Co-authored-by: MarcoGorelli <>
1 parent 6bb8f73 commit 4d18871

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

.pre-commit-config.yaml

+4-4
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ repos:
2828
types_or: [python, pyi]
2929
additional_dependencies: [black==23.1.0]
3030
- repo: https://github.com/charliermarsh/ruff-pre-commit
31-
rev: v0.0.244
31+
rev: v0.0.253
3232
hooks:
3333
- id: ruff
3434
- repo: https://github.com/jendrikseipp/vulture
@@ -45,7 +45,7 @@ repos:
4545
types_or: [python, rst, markdown]
4646
additional_dependencies: [tomli]
4747
- repo: https://github.com/MarcoGorelli/cython-lint
48-
rev: v0.12.4
48+
rev: v0.12.5
4949
hooks:
5050
- id: cython-lint
5151
- id: double-quote-cython-strings
@@ -78,12 +78,12 @@ repos:
7878
'--filter=-readability/casting,-runtime/int,-build/include_subdir,-readability/fn_size'
7979
]
8080
- repo: https://github.com/pycqa/pylint
81-
rev: v2.16.1
81+
rev: v2.16.2
8282
hooks:
8383
- id: pylint
8484
stages: [manual]
8585
- repo: https://github.com/pycqa/pylint
86-
rev: v2.16.1
86+
rev: v2.16.2
8787
hooks:
8888
- id: pylint
8989
alias: redefined-outer-name

pyproject.toml

+6
Original file line numberDiff line numberDiff line change
@@ -261,12 +261,18 @@ ignore = [
261261
"PLR0912",
262262
# Too many statements
263263
"PLR0915",
264+
# Global statements are discouraged
265+
"PLW0603",
264266

265267
# Additional checks that don't pass yet
266268
# Within an except clause, raise exceptions with ...
267269
"B904",
268270
# Magic number
269271
"PLR2004",
272+
# Outer loop variable overwritten by inner assignment
273+
"PLW2901",
274+
# Consider `elif` instead of `else` then `if` to remove indendation level
275+
"PLR5501",
270276
]
271277

272278
exclude = [

0 commit comments

Comments
 (0)