File: fast8.sh

package info (click to toggle)
python-os-brick 1.6.1-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 1,140 kB
  • ctags: 1,319
  • sloc: python: 10,746; sh: 31; makefile: 26
file content (15 lines) | stat: -rwxr-xr-x 299 bytes parent folder | download | duplicates (15)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/bash

cd $(dirname "$0")/..
CHANGED=$(git diff --name-only HEAD~1 | tr '\n' ' ')

# Skip files that don't exist
# (have been git rm'd)
CHECK=""
for FILE in $CHANGED; do
    if [ -f "$FILE" ]; then
        CHECK="$CHECK $FILE"
    fi
done

diff -u --from-file /dev/null $CHECK | flake8 --diff