Merge "Fix fast8 tox target"
This commit is contained in:
+2
-7
@@ -11,15 +11,10 @@
|
|||||||
|
|
||||||
if test "x$1" = "x-HEAD" ; then
|
if test "x$1" = "x-HEAD" ; then
|
||||||
shift
|
shift
|
||||||
files=$(git diff --name-only HEAD~1 | tr '\n' ' ')
|
files=$(git diff --name-only HEAD~1 | grep '.py$' | tr '\n' ' ')
|
||||||
echo "Running flake8 on ${files}"
|
echo "Running flake8 on ${files}"
|
||||||
echo ""
|
echo ""
|
||||||
echo "Consider using the 'pre-commit' tool instead."
|
flake8 "$@" $files
|
||||||
echo ""
|
|
||||||
echo " pip install --user pre-commit"
|
|
||||||
echo " pre-commit install --allow-missing-config"
|
|
||||||
echo ""
|
|
||||||
diff -u --from-file /dev/null ${files} | flake8 --diff "$@"
|
|
||||||
else
|
else
|
||||||
echo "Running flake8 on all files"
|
echo "Running flake8 on all files"
|
||||||
echo ""
|
echo ""
|
||||||
|
|||||||
Reference in New Issue
Block a user