File tree 1 file changed +10
-1
lines changed
{{cookiecutter.project_slug}}
1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -150,11 +150,20 @@ select = [
150
150
ignore = [
151
151
" S101" , # Use of assert detected https://docs.astral.sh/ruff/rules/assert/
152
152
" RUF012" , # Mutable class attributes should be annotated with `typing.ClassVar`
153
- " SIM102" # sometimes it's better to nest
153
+ " SIM102" , # sometimes it's better to nest
154
+ " UP038" # Checks for uses of isinstance/issubclass that take a tuple
155
+ # of types for comparison.
156
+ # Deactivated because it can make the code slow:
157
+ # https://github.com/astral-sh/ruff/issues/7871
154
158
]
155
159
# Allow fix for all enabled rules (when `--fix`) is provided.
156
160
fixable = [" ALL" ]
157
161
unfixable = []
162
+ # The fixes in extend-unsafe-fixes will require
163
+ # provide the `--unsafe-fixes` flag when fixing.
164
+ extend-unsafe-fixes = [
165
+ " UP038"
166
+ ]
158
167
# Allow unused variables when underscore-prefixed.
159
168
dummy-variable-rgx = " ^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
160
169
You can’t perform that action at this time.
0 commit comments