Remove a lot of deprecated ruff rules and format

This commit is contained in:
Trysdyn Black 2025-05-23 14:26:28 -07:00
parent 5eba7b207f
commit a3b5a4347c

View file

@ -11,34 +11,35 @@ preview = true
# - CPY: Copyright notice screamer; I don't care # - CPY: Copyright notice screamer; I don't care
# - TD: Overly opinionated on FIXME/TODO format. FIX covers better # - TD: Overly opinionated on FIXME/TODO format. FIX covers better
lint.select = [ lint.select = [
"ANN", # enforce type annotations "ANN", # enforce type annotations
"A", # prevent using keywords that clobber python builtins "A", # prevent using keywords that clobber python builtins
"ARG", # argument usage checking "ARG", # argument usage checking
"B", # bugbear: security warnings "B", # bugbear: security warnings
"C4", # generator usage "C4", # generator usage
"C90", # mccabe code complexity "C90", # mccabe code complexity
"COM", # comma usage "COM", # comma usage
"D", # pydocstyle "D", # pydocstyle
"DTZ", # datetimez sanity "DTZ", # datetimez sanity
"E", # pycodestyle errors "E", # pycodestyle errors
"EM", # error message handling "EM", # error message handling
"F", # pyflakes - should be enabled but make explicit "F", # pyflakes - should be enabled but make explicit
"ERA", # commented code screamer "FURB", # refurb - code modernization
"FBT", # boolean traps "ERA", # commented code screamer
"FIX", # fixme screamer "FBT", # boolean traps
"F", # pyflakes "FIX", # fixme screamer
"G", # logging handling "F", # pyflakes
"I", # isort "G", # logging handling
"ISC", # implicit string concatenation "I", # isort
"PIE", # pie stuff "ISC", # implicit string concatenation
"PL", # pylint rules "PIE", # pie stuff
"PTH", # pathlib usage "PL", # pylint rules
"Q", # quote handling "PTH", # pathlib usage
"RET", # return handling "Q", # quote handling
"RUF", # the ruff developer's own rules "RET", # return handling
"SIM", # simplification options "RUF", # the ruff developer's own rules
"UP", # alert you when better syntax is available in your python version "SIM", # simplification options
"W", # pycodestyle warnings "UP", # alert you when better syntax is available in your python version
"W", # pycodestyle warnings
] ]
lint.ignore = [ lint.ignore = [