Add configuration option to specify which files to check
Hello,
It would be convenient to be able to run just flake8
and have it default to check the current directory, recursively.
I think this could be implemented by adding an option (as opposed to a command line argument) to specify which paths to check.
Setting this option to .
would check the current directory. It could also be set to a more specific path like src
if the relevant Python source code is in a subdirectory.
For comparison, you can do this with pytest in setup.cfg:
[pytest]
testpaths = backend/tests
I would like to be able to do:
[flake8]
include = backend/src,backend/tests
(comma-separated because this appears to be the convention in flake8's configuration, although I prefer space-separated, and I think supporting both would be ideal)