]>
git.scottworley.com Git - pinch/blob - test.sh
16d9c053d0844b04010d6a6a2b5e8c757a0187a1
7 find .
-name build
-prune -o -name dist
-prune -o -name '*.py' -print0 |
8 xargs -0 mypy
--strict --ignore-missing-imports
10 for test in tests
/*;do
11 if [ ! -d "$test" ];then
16 find .
-name '*_test.py' -print0 | xargs -0 -r -n1 python3
18 if [ "$1" = lint
];then
20 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
22 formatting_needs_fixing
=$
(
23 find .
-name '*.py' -print0 |
24 xargs -P "$PARALLELISM" -0 -n1 autopep8
--diff -aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
26 if [[ "$formatting_needs_fixing" ]];then
27 echo "Formatting needs fixing:"
28 echo "$formatting_needs_fixing"