Flake8 is configured nicely in the pre-commit config, however there is no config for an editor to respect. I'm no expert here but vim was screaming at me till I added a .flake8 but decided to go with setup.cfg since it's more generic. To my knowledge pyproject.toml doesn't support flake8 (or vice versa).
If setup.cfg is undesirable for any reason I'm not married to it at all, but it's nice to have some canned config to avoid someone changing trivial things based on editor configs (ie. autoformat on save, or flake8 running in the background with a different config than what the project is setup for).
Development notes
Removed duplicated config line in .pre-commit-config for flake8
Added setup.cfg with flake8 config to match pre-commit
Description
Flake8 is configured nicely in the
pre-commit
config, however there is no config for an editor to respect. I'm no expert here but vim was screaming at me till I added a.flake8
but decided to go withsetup.cfg
since it's more generic. To my knowledgepyproject.toml
doesn't supportflake8
(or vice versa).If
setup.cfg
is undesirable for any reason I'm not married to it at all, but it's nice to have some canned config to avoid someone changing trivial things based on editor configs (ie. autoformat on save, or flake8 running in the background with a different config than what the project is setup for).Development notes
Removed duplicated config line in
.pre-commit-config
forflake8
Addedsetup.cfg
withflake8
config to matchpre-commit
Checklist
RELEASE.md
file