cinder/tools/fast8.sh
Eric Harney 7e5c074351 Add "fast8" tox env
This replicates the run_tests.sh -8 behavior, running
flake8 only on changes made in the last commit and
working tree.

Change-Id: Iebd5746c78e840225f0860843c77f4c638877c26
2015-09-22 15:43:51 -04:00

6 lines
143 B
Bash
Executable File

#!/bin/bash
cd $(dirname "$0")/..
CHANGED=$(git diff --name-only HEAD~2 | tr '\n' ' ')
diff -u --from-file /dev/null $CHANGED | flake8 --diff