Merge pull request #10381 from AlanCoding/tox_configish

Enter flake8 rules in tox config as actual config entries

I really like to do things like
flake8 awx/main/models

but this is made impractical where running flake8 for the project carries with it an assumption that you will pass a specific set of options.
https://flake8.pycqa.org/en/latest/user/configuration.html
Blessedly, flake8 is flexible in their config options so that it may weather the storm of python project config wars.

Reviewed-by: Jeff Bradberry <None>
Reviewed-by: Bianca Henderson <beeankha@gmail.com>
This commit is contained in:
softwarefactory-project-zuul[bot] 2021-06-08 15:49:01 +00:00 committed by GitHub
commit 2ad84b60b3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -9,5 +9,8 @@ setenv =
BLACK_ARGS = --check
commands =
make black
flake8 awx --select=F401,F402,F821,F823,F841
flake8 awx
yamllint -s .
[flake8]
select = F401,F402,F821,F823,F841