You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"EM101", # Exception must not use a string literal, assign to variable first
110
-
"EM102", # Exception must not use an f-string literal, assign to variable first
111
-
"EM103", # Exception must not use a `.format()` string directly, assign to variable first
115
+
"EM",
112
116
# eradicate ('ERA')
113
117
# NOT YET USED
114
118
# flake8-executable ('EXE')
@@ -122,11 +126,12 @@ select = [
122
126
# flake8-fixme ('FIX')
123
127
# NOT YET USED
124
128
# flynt ('FLY')
125
-
# NOT YET USED
126
-
"FURB", # refurb
129
+
"FLY",
130
+
# refurb ('FURB')
131
+
"FURB",
127
132
# flake8-logging-format ('G')
128
133
"G001", # Logging statement uses `str.format`
129
-
# "G002", # Logging statement uses `%`
134
+
"G002", # Logging statement uses `%`
130
135
# "G003", # Logging statement uses `+`
131
136
"G004", # Logging statement uses f-string
132
137
"G010", # Logging statement uses `warn` instead of `warning`
@@ -135,20 +140,16 @@ select = [
135
140
"G202", # Logging statement has redundant `exc_info`
136
141
# isort ('I')
137
142
"I",
143
+
# flake8-import-conventions ('ICN')
138
144
"ICN", # flake8-import-conventions
139
145
# flake8-no-pep420 ('INP')
140
146
"INP",
141
147
# flake8-gettext ('INT')
142
-
"INT001", # f-string is resolved before function call; consider `_("string %s") % arg`
143
-
"INT002", # `format` method argument is resolved before function call; consider `_("string %s") % arg`
144
-
"INT003", # printf-style format is resolved before function call; consider `_("string %s") % arg`
148
+
"INT",
145
149
# flake8-implicit-str-concat ('ISC')
146
150
# NOT YET USED
147
151
# flake8-logging ('LOG')
148
-
"LOG001", # Use `logging.getLogger()` to instantiate loggers
149
-
"LOG002", # Use `__name__` with `logging.getLogger()`
150
-
"LOG007", # Use of `logging.exception` with falsy `exc_info`
151
-
"LOG009", # Use of undocumented `logging.WARN` constant
152
+
"LOG",
152
153
# pep8-naming ('N')
153
154
# NOT YET USED
154
155
# numpy-specific rules ('NPY')
@@ -176,9 +177,15 @@ select = [
176
177
"PLC0105", # `{kind}` name "{param_name}" does not reflect its {variance}; consider renaming it to "{replacement_name}"
177
178
"PLC0131", # `{kind}` cannot be both covariant and contravariant
178
179
"PLC0132", # `{kind}` name `{param_name}` does not match assigned variable name `{var_name}`
179
-
# "PLC0205", # Class `__slots__` should be a non-string iterable
180
-
# "PLC0208", # Use a sequence type instead of a `set` when iterating over values
180
+
"PLC0205", # Class `__slots__` should be a non-string iterable
181
+
"PLC0208", # Use a sequence type instead of a `set` when iterating over values
181
182
"PLC0414", # Import alias does not rename original package
183
+
# "PLC0415", # `import` should be at the top-level of a file
184
+
"PLC1901", # `{existing}` can be simplified to `{replacement}` as an empty string is falsey
185
+
"PLC2401", # {kind} name `{name}` contains a non-ASCII character, consider renaming it
186
+
"PLC2403", # Module alias `{name}` contains a non-ASCII character, use an ASCII-only alias
187
+
# "PLC2701", # Private name import `{name}` from external module `{module}`
188
+
"PLC2801", # Unnecessary dunder call to `{method}`. {replacement}.
182
189
"PLC3002", # Lambda expression called directly. Execute the expression inline instead.
183
190
# pylint ('PLE')
184
191
"PLE0100", # `__init__` method is a generator
@@ -326,16 +333,19 @@ select = [
326
333
"S612", # Use of insecure `logging.config.listen` detected
327
334
# "S701", # Using jinja2 templates with `autoescape=False` is dangerous and can lead to XSS. Ensure `autoescape=True` or use the `select_autoescape` function.
328
335
# "S702", # Mako templates allow HTML and JavaScript rendering by default and are inherently open to XSS attacks
336
+
# flake8-simplify ('SIM')
329
337
"SIM", # flake8-simplify
330
338
# flake8-self ('SLF')
331
339
# NOT YET USED
332
-
"SLOT", # flake8-slots
340
+
# flake8-slots ('SLOT')
341
+
"SLOT",
333
342
# flake8-debugger ('T10')
334
343
"T100", # Trace found: `{name}` used
335
344
# flake8-print ('T20')
336
345
"T201", # `print` found
337
346
"T203", # `pprint` found
338
-
"TCH", # flake8-type-checking
347
+
# flake8-type-checking ('TCH')
348
+
"TCH",
339
349
# flake8-todos ('TD')
340
350
# "TD001", # Invalid TODO tag: `{tag}`
341
351
# "TD003", # Missing issue link on the line following this TODO
@@ -351,14 +361,10 @@ select = [
351
361
# Trio is not used in Sphinx
352
362
# tryceratops ('TRY')
353
363
# NOT YET USED
354
-
"UP001", # pyupgrade
364
+
# pyupgrade ('UP')
365
+
"UP",
355
366
# pycodestyle ('W')
356
-
"W191", # Indentation contains tabs
357
-
# "W291", # Trailing whitespace
358
-
"W292", # No newline at end of file
359
-
"W293", # Blank line contains whitespace
360
-
"W505", # Doc line too long ({width} > {limit} characters)
0 commit comments