File tree Expand file tree Collapse file tree 2 files changed +10
-5
lines changed Expand file tree Collapse file tree 2 files changed +10
-5
lines changed Original file line number Diff line number Diff line change 1
1
repos :
2
2
- repo : https://github.com/astral-sh/ruff-pre-commit
3
- rev : v0.9.6
3
+ rev : v0.12.2
4
4
hooks :
5
5
- id : ruff
6
- args : [--fix, --exit-non-zero-on-fix]
7
6
- repo : https://github.com/pre-commit/pre-commit-hooks
8
7
rev : v4.5.0
9
8
hooks :
Original file line number Diff line number Diff line change @@ -91,10 +91,13 @@ ignore = [
91
91
" UP019" ,
92
92
" UP035" ,
93
93
" UP038" ,
94
+ " UP045" , # X | None instead of Optional[X]
94
95
# Not relevant here
95
- " RUF012" ,
96
- " RUF022" ,
97
- " RUF023" ,
96
+ " RUF012" , # Use ClassVar for mutables
97
+ " RUF022" , # Unsorted __all__
98
+ " RUF023" , # Unsorted __slots__
99
+ " B903" , # Use dataclass / namedtuple
100
+ " RUF031" , # parentheses for tuples in subscripts
98
101
# Ruff doesn't understand the globals() assignment; we test __all__
99
102
# directly in test_all_names_in___all__.
100
103
" F822" ,
@@ -109,6 +112,9 @@ ignore = [
109
112
" E306" ,
110
113
" E501" ,
111
114
" E701" ,
115
+ # Harmful for tests if applied.
116
+ " RUF036" , # None not at end of Union
117
+ " RUF041" , # nested Literal
112
118
]
113
119
114
120
[tool .ruff .lint .isort ]
You can’t perform that action at this time.
0 commit comments