diff options
Diffstat (limited to 'check')
-rwxr-xr-x | check | 15 |
1 files changed, 15 insertions, 0 deletions
@@ -34,6 +34,21 @@ docgen() { cargo run $quiet --bin sp-docgen -- "$1" --output "$2" } +# Run unit tests for the Python template. +(set -eu + cd templates/python + for x in *_tests.py + do + $hideok echo "Unit tests: $x" + $hideok python3 "$x" + $hideok echo + done) + +if command -v flake8 > /dev/null +then + $hideok flake8 templates/python --exclude=template.py +fi + $hideok cargo build --all-targets if cargo --list | awk '{ print $1 }' | grep 'clippy$' > /dev/null then |