mirror of
https://github.com/ansible/awx.git
synced 2026-02-23 14:05:59 -03:30
Additional flake8 cleanup
The flake8 command was identifying several warnings and errors. This change addresses the flake8 warnings and updates the setup.cfg with additional exclusions. If accepted, jenkins will be updated to use the flake8 command, rather than using the django_jenkins plugin. This will expedite jenkins testing.
This commit is contained in:
20
Makefile
20
Makefile
@@ -244,14 +244,22 @@ socketservice:
|
||||
factcacher:
|
||||
$(PYTHON) manage.py run_fact_cache_receiver
|
||||
|
||||
pep8:
|
||||
pep8 -r awx/
|
||||
reports:
|
||||
mkdir -p $@
|
||||
|
||||
pyflakes:
|
||||
pyflakes awx/
|
||||
pep8: reports
|
||||
@(set -o pipefail && $@ | tee reports/$@.report)
|
||||
|
||||
check:
|
||||
flake8
|
||||
flake8: reports
|
||||
@$@ --output-file=reports/$@.report
|
||||
|
||||
pyflakes: reports
|
||||
@(set -o pipefail && $@ | tee reports/$@.report)
|
||||
|
||||
pylint: reports
|
||||
@(set -o pipefail && $@ | reports/$@.report)
|
||||
|
||||
check: flake8 pep8 # pyflakes pylint
|
||||
|
||||
# Run all API unit tests.
|
||||
test:
|
||||
|
||||
Reference in New Issue
Block a user