We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Missing from #1117
extend-select = [ "B", # flake8-bugbear "C4", # flake8-comprehensions "PERF", # More list comprehension rules "BLE", # flake8-blind-except "PIE", # Various useful rules "RUF", # Various useful Ruff rules "EM", # Error messages and tracebacks "ISC", # Implicit string concatenation "SIM", # Flow simplifications ]
Mentioned in #1117:
Currently, this adds all checks I think are very useful, minus the following that require more substantive changes: B028/no-explicit-stacklevel: we should do this for more useful warning stack locations FBT/flake8-boolean-trap: very useful for a future API update PT/flake8-pytest-style very useful, but needs a lot of changes PD/pandas-vet The following stylistic rulesets are useful enough to go for but also need quite some changes D/pydocstyle RET/[return style] Clarifies early returns (if thing: return\nelse: ... → if thing: return...)
Currently, this adds all checks I think are very useful, minus the following that require more substantive changes:
B028
FBT
PT
PD
The following stylistic rulesets are useful enough to go for but also need quite some changes
D
RET
Also:
SIM for simplified code (e.g. ternaries instead of assignments in if/else)
SIM
Also maybe strict TCH
[tool.ruff.lint.flake8-type-checking] strict = true
PYI for less-known typing stuff (like float meaning int | float) (Add PYI lints scanpy#3339, Add PYI lints #1747)
PYI
float
int | float
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Please describe your wishes and possible alternatives to achieve the desired result.
Missing from #1117
Mentioned in #1117:
Also:
SIM
for simplified code (e.g. ternaries instead of assignments in if/else)Also maybe strict TCH
PYI
for less-known typing stuff (likefloat
meaningint | float
) (Add PYI lints scanpy#3339, Add PYI lints #1747)The text was updated successfully, but these errors were encountered: