chore: expand ruff rules with comprehensive linting (#3453)

This commit is contained in:
Greyson LaLonde
2025-09-05 14:38:56 -04:00
committed by GitHub
parent 610c1f70c0
commit 30b9cdd944

View File

@@ -106,19 +106,30 @@ fix = true
[tool.ruff.lint] [tool.ruff.lint]
select = [ select = [
"B006", "E", # pycodestyle errors (style issues)
"UP006", "F", # Pyflakes (code errors)
"UP007", "B", # flake8-bugbear (bug prevention)
"UP035", "S", # bandit (security issues)
"UP037", "RUF", # ruff-specific rules
"UP004", "N", # pep8-naming (naming conventions)
"UP008", "W", # pycodestyle warnings
"UP010", "PERF", # performance issues
"UP018", "PIE", # flake8-pie (unnecessary code)
"UP031", "ASYNC", # async/await best practices
"UP032", "RET", # flake8-return (return improvements)
"I001", "UP006", # use collections.abc
"I002", "UP007", # use X | Y for unions
"UP035", # use dict/list instead of typing.Dict/List
"UP037", # remove quotes from type annotations
"UP045", # use X | None instead of Optional[X]
"UP004", # use isinstance instead of type
"UP008", # use super() instead of super(Class, self)
"UP010", # use isinstance for type checks
"UP018", # use str() instead of "string"
"UP031", # use f-strings for .format()
"UP032", # use f-strings for .format() with positional
"I001", # sort imports
"I002", # remove unused imports
] ]
[tool.mypy] [tool.mypy]