datajoely / kedro-rich

Make your Kedro experience snazzy
36 stars 4 forks source link

Flake8 config #3

Closed pypeaday closed 2 years ago

pypeaday commented 2 years ago

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 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

Checklist