1
0
Fork 0
maximum-weight-matching/run_checks.sh

27 lines
478 B
Bash
Raw Normal View History

2024-06-22 20:04:49 +02:00
#!/bin/bash
2023-04-14 15:45:26 +02:00
set -e
2024-06-22 20:04:49 +02:00
echo
echo "Running pycodestyle"
pycodestyle python/mwmatching.py python/datastruct.py tests
2023-04-14 15:45:26 +02:00
echo
echo "Running mypy"
mypy --disallow-incomplete-defs python tests
echo
echo "Running pylint"
2024-06-22 20:04:49 +02:00
pylint --ignore=test_mwmatching.py python tests || [ $(($? & 3)) -eq 0 ]
2023-04-14 15:45:26 +02:00
echo
echo "Running test_mwmatching.py"
python3 python/test_mwmatching.py
echo
echo "Checking test coverage"
coverage erase
coverage run --branch python/test_mwmatching.py
coverage report -m