-
-
Notifications
You must be signed in to change notification settings - Fork 409
Open
Labels
Long-term PlanningThings that need to happen at some point in the future, but need to NOT happen soon.Things that need to happen at some point in the future, but need to NOT happen soon.Low PriorityTestsTrackingTweak
Description
I have a list of flake8 plugins I'd like to add after we release 7.0:
-
flake8-future-importfor easier enforcement of the required__future__imports [Unignore more style checks #1561] -
flake8-import-orderto check import sorting (kind of redundant with the existingisortproject in isort: add isort to the QA tools #1752, but has the benefit of being integrated with our current checks;in-progress by me, @dgw, in a personal branch nameddone by @half-duplex in Add flake8-import-order #1864)flake8-import-order -
flake8-unused-argumentsto do what it says on the tin (we can always ignore specific instances for e.g. backward compatibility with# noqa: U100comments) -
flake8-comprehensionsfor sanity checks—these were some of the DeepSource warnings that I thought were actually worth looking at from [POC] all: fix deepsource checks #2016 [ ]Removed/NAK as the plugin can't be configured to enforce the desired style choices.flake8-quotesto push us toward using single-quotes except when the string contains them (my own preference) (quality: add flake8-quotes #2322)-
flake8-requirementsfor core and plugins (as we extract stuff into separate packages), to make sure dependencies stay sane -
flake8-string-formatto check.format()calls—though it mightn't be maintained any more? and/or there could be places where we intentionally break the conventions for stuff like pluralizing messages -
flake8-type-checkingto guard against runtime overhead from importing modules that only appear in type annotations (implement flake8-type-checking #2300) -
flake8-docstringsto enforce blank lines (or not) around docstrings, and flag things that aren't documented but should be- Previously attempted in quality: Docstring cleanup for pydocstyle prep #1978, and it forced changes to a lot of things that made our docs (subjectively) worse. We'll need to fine-tune the selected rules in a future attempt.
-
flake8-rst-docstringsto lint reStructuredText docstrings, keeping our docs more consistent
There are probably more plugins that would be useful, which anyone may suggest here. I'll modify this checklist as needed.
Metadata
Metadata
Assignees
Labels
Long-term PlanningThings that need to happen at some point in the future, but need to NOT happen soon.Things that need to happen at some point in the future, but need to NOT happen soon.Low PriorityTestsTrackingTweak