There was an error while loading. Please reload this page.
2 parents 7a0845e + 095edbc commit 7956561Copy full SHA for 7956561
2 files changed
tools/fast8.sh
@@ -0,0 +1,15 @@
1
+#!/bin/bash
2
+
3
+cd $(dirname "$0")/..
4
+CHANGED=$(git diff --name-only HEAD~1 | tr '\n' ' ')
5
6
+# Skip files that don't exist
7
+# (have been git rm'd)
8
+CHECK=""
9
+for FILE in $CHANGED; do
10
+ if [ -f "$FILE" ]; then
11
+ CHECK="$CHECK $FILE"
12
+ fi
13
+done
14
15
+diff -u --from-file /dev/null $CHECK | flake8 --diff
tox.ini
@@ -11,6 +11,12 @@ deps = -r{toxinidir}/test-requirements.txt
commands = ostestr {posargs}
whitelist_externals = ostestr
+[testenv:fast8]
+# Use same environment directory as pep8 env to save space and install time
16
+envdir = {toxworkdir}/pep8
17
+commands =
18
+ {toxinidir}/tools/fast8.sh
19
20
[testenv:pep8]
21
commands =
22
flake8
0 commit comments