Introduce fast8 tox target
The pep8 target has the little known "-HEAD" argument which makes it only run flake8 on the changes since the last change in the history. Even though that's nice, it's sometimes hard to remember the -HEAD argument. Plus pep8 is running some other checks on things like the docs. So if all you want is the pep8 -- -HEAD behavior, this is a simplied convenient form of it. Change-Id: I97b277d8ac95ca3ef8379570e0e3886df26263e1
This commit is contained in:
1 changed files with 9 additions and 0 deletions
9
tox.ini
9
tox.ini
@@ -44,6 +44,15 @@ commands =
# Check that all included JSON files are valid JSON
bash -c '! find doc/ -type f -name *.json | xargs -t -n1 python -m json.tool 2>&1 > /dev/null | grep -B1 -v ^python'
[testenv:fast8]
# This is a subset of the full pep8 check which
# only runs flake8 on the changes made since
# HEAD-1. For a full flake8 run including checking
# docs, just use pep8.
basepython = python2.7
commands =
bash tools/flake8wrap.sh -HEAD
[testenv:functional]
# TODO(melwitt): This can be removed when functional tests are gating with
# python 3.x
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.