Skip to content

Commit d6eba10

Browse files
committed
Improve comments
1 parent 446946b commit d6eba10

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pyproject.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ lint.select = [
226226
"B014", # Exception handler with duplicate exception
227227
"B023", # Function definition does not bind loop variable {name}
228228
"B026", # Star-arg unpacking after a keyword argument is strongly discouraged
229-
"B904", # `TRY200` has been remapped to `B904`
229+
"B904", # Use raise from err or None to specify exception cause
230230
"C", # complexity
231231
"COM818", # Trailing comma on bare tuple prohibited
232232
"D", # docstrings
@@ -241,7 +241,7 @@ lint.select = [
241241
"N804", # First argument of a class method should be named cls
242242
"N805", # First argument of a method should be named self
243243
"N815", # Variable {name} in class scope should not be mixedCase
244-
# "PGH001", # No builtin eval() allowed - `PGH001` has been remapped to `S307`
244+
# "PGH001", # PGH001 has been remapped to S307
245245
"PGH004", # Use specific rule codes when using noqa
246246
"PL", # https://github.com/astral-sh/ruff/issues/7491#issuecomment-1730008111
247247
"PLC0414", # Useless import alias. Import alias does not rename original package.
@@ -281,7 +281,7 @@ lint.select = [
281281
"T20", # flake8-print
282282
"TID251", # Banned imports
283283
"TRY004", # Prefer TypeError exception for invalid type
284-
# "TRY200", # Use raise from to specify exception cause
284+
# "TRY200", # TRY200 has been remapped to B904
285285
"TRY302", # Remove exception handler; error is immediately re-raised
286286
"UP", # pyupgrade
287287
"W", # pycodestyle

0 commit comments

Comments
 (0)