pep8: exclude .git/ subdirectory
When a git branch is called trove-xxx, "tox -e pep8" fails on checking .git/logs/refs/heads/trove-xxx. It doesn't make sense to validate Git branches using flake8. Simply exclude .git from flake8. Note: [testenv:pep8] of tox.ini looks for "trove-*" to validate contrib/trove-guestagent. Change-Id: I7c5582282a63da8cc1b3bbb6b76a267ef894a5d7
This commit is contained in:
parent
f066d6963f
commit
93f448b577
2
tox.ini
2
tox.ini
@ -75,7 +75,7 @@ show-source = True
|
|||||||
# The rest of the ignores are TODOs.
|
# The rest of the ignores are TODOs.
|
||||||
ignore = F821,H237,H238,H301,H404,H405,H501
|
ignore = F821,H237,H238,H301,H404,H405,H501
|
||||||
builtins = _
|
builtins = _
|
||||||
exclude=.venv,.tox,dist,doc,openstack,*egg,tools,etc,build,*.po,*.pot
|
exclude=.venv,.tox,.git,dist,doc,openstack,*egg,tools,etc,build,*.po,*.pot
|
||||||
filename=*.py,trove-*
|
filename=*.py,trove-*
|
||||||
|
|
||||||
[testenv:checklinks]
|
[testenv:checklinks]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user