Skip to content

Commit d828c57

Browse files
authored
Merge pull request #29565 from jorenham/ruff-config-legend
STY: ruff rule name comments
2 parents 75c79e5 + 7545bc7 commit d828c57

File tree

1 file changed

+26
-17
lines changed

1 file changed

+26
-17
lines changed

ruff.toml

Lines changed: 26 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -21,37 +21,44 @@ line-ending = "lf"
2121
[lint]
2222
preview = true
2323
extend-select = [
24-
"B",
25-
"C4",
26-
"ISC",
27-
"LOG",
28-
"G",
29-
"PIE",
30-
"TID",
31-
"FLY",
32-
"I",
33-
"PD",
34-
"PERF",
35-
"E",
36-
"W",
37-
"PGH",
38-
"PLE",
39-
"UP",
40-
"Q",
24+
"B", # flake8-bugbear
25+
"C4", # flake8-comprehensions
26+
"ISC", # flake8-implicit-str-concat
27+
"LOG", # flake8-logging
28+
"G", # flake8-logging-format
29+
"PIE", # flake8-pie
30+
"Q", # flake8-quotes
31+
"TID", # flake8-tidy-imports
32+
"FLY", # flynt
33+
"I", # isort
34+
"PD", # pandas-vet
35+
"PERF", # perflint
36+
"E", # pycodestyle/error
37+
"W", # pycodestyle/warning
38+
"PGH", # pygrep-hooks
39+
"PLE", # pylint/error
40+
"UP", # pyupgrade
4141
]
4242
ignore = [
43+
# flake8-bugbear
4344
"B006", # Do not use mutable data structures for argument defaults
4445
"B007", # Loop control variable not used within loop body
4546
"B011", # Do not `assert False` (`python -O` removes these calls), raise `AssertionError()`
4647
"B023", # Function definition does not bind loop variable
4748
"B028", # No explicit `stacklevel` keyword argument found
4849
"B904", # Within an `except` clause distinguish raised exceptions from errors in exception handling
4950
"B905", #`zip()` without an explicit `strict=` parameter
51+
# flake8-comprehensions
5052
"C408", # Unnecessary `dict()` call (rewrite as a literal)
53+
# flake8-implicit-str-concat
5154
"ISC002", # Implicitly concatenated string literals over multiple lines
55+
# flake8-pie
5256
"PIE790", # Unnecessary `pass` statement
57+
# pandas-vet
5358
"PD901", # Avoid using the generic variable name `df` for DataFrames
59+
# perflint
5460
"PERF401", # Use a list comprehension to create a transformed list
61+
# pycodestyle/error
5562
"E241", # Multiple spaces after comma
5663
"E265", # Block comment should start with `# `
5764
"E266", # Too many leading `#` before block comment
@@ -61,10 +68,12 @@ ignore = [
6168
"E721", # TODO: Use `is` and `is not` for type comparisons, or `isinstance()` for isinstance check
6269
"E731", # Do not assign a `lambda` expression, use a `def`
6370
"E741", # Ambiguous variable name
71+
# pyflakes
6472
"F403", # `from ... import *` used; unable to detect undefined names
6573
"F405", # may be undefined, or defined from star imports
6674
"F821", # Undefined name
6775
"F841", # Local variable is assigned to but never used
76+
# pyupgrade
6877
"UP015" , # Unnecessary mode argument
6978
"UP031", # TODO: Use format specifiers instead of percent format
7079
]

0 commit comments

Comments
 (0)