You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
flake8 automatically reads configuration from files like setup.cfg – however, my setup.cfg is placed in my src directory. With this (very cool, btw) action, my settings file would never get parsed, because it will invoke flake8 src.
I'd like to suggest a new option, "working-directory", to allow for this kind of scenario.
Before switching to pyproject.toml, my setup.py file was also located in src, so it seemed logical to keep setup.cfg next to it. As all code lives inside src, there's no real reason to keep the config file further up, and to clutter the root directory needlessly.
I just pushed this change, and is available under v2 (as it is backwards compatible). Please test it out and let me know if it works as expected. Syntax available here:
Activity
TrueBrain commentedon May 17, 2024
Can I ask why your
setup.cfgis insrc? That is most unusual :) Most Python tooling assumes these kind of files are all in the root of the git repo.Anyway, not judging. Adding your suggestion seems low-effort, so I will see what I can do :)
rixx commentedon May 17, 2024
Before switching to
pyproject.toml, mysetup.pyfile was also located insrc, so it seemed logical to keepsetup.cfgnext to it. As all code lives insidesrc, there's no real reason to keep the config file further up, and to clutter the root directory needlessly.TrueBrain commentedon May 17, 2024
I just pushed this change, and is available under
v2(as it is backwards compatible). Please test it out and let me know if it works as expected. Syntax available here:https://github.com/TrueBrain/actions-flake8?tab=readme-ov-file#parameter-working_directory