]> git.scottworley.com Git - pinch/blame - test.sh
Specify channels to pin on command line
[pinch] / test.sh
CommitLineData
2f96f32a
SW
1#!/bin/sh
2
3set -e
4
5PARALLELISM=4
6
7find . -name '*.py' -print0 | xargs -0 mypy --strict --ignore-missing-imports
8
9find . -name '*_test.py' -print0 | xargs -0 -r -n1 python3
10
dc038df0 11find . -name '*.py' -print0 | xargs -0 pylint --reports=n --persistent=n --ignore-imports=y -d fixme,invalid-name,missing-docstring,too-few-public-methods
2f96f32a
SW
12
13formatting_needs_fixing=$(
14 find . -name '*.py' -print0 |
15 xargs -P "$PARALLELISM" -0 -n1 autopep8 --diff -aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
16)
17if [[ "$formatting_needs_fixing" ]];then
18 echo "Formatting needs fixing:"
19 echo "$formatting_needs_fixing"
20 exit 1
21fi