]>
Commit | Line | Data |
---|---|---|
2f96f32a SW |
1 | #!/bin/sh |
2 | ||
3 | set -e | |
4 | ||
5 | PARALLELISM=4 | |
6 | ||
7 | find . -name '*.py' -print0 | xargs -0 mypy --strict --ignore-missing-imports | |
8 | ||
49d58bdf SW |
9 | for test in tests/*;do |
10 | "$test" | |
11 | done | |
12 | ||
2f96f32a SW |
13 | find . -name '*_test.py' -print0 | xargs -0 -r -n1 python3 |
14 | ||
7fcc18a2 | 15 | find . -name '*.py' -print0 | xargs -0 pylint --reports=n --persistent=n --ignore-imports=y -d fixme,invalid-name,missing-docstring,subprocess-run-check,too-few-public-methods |
2f96f32a SW |
16 | |
17 | formatting_needs_fixing=$( | |
18 | find . -name '*.py' -print0 | | |
19 | xargs -P "$PARALLELISM" -0 -n1 autopep8 --diff -aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa | |
20 | ) | |
21 | if [[ "$formatting_needs_fixing" ]];then | |
22 | echo "Formatting needs fixing:" | |
23 | echo "$formatting_needs_fixing" | |
24 | exit 1 | |
25 | fi |