2019-12-23 17:37:33 +01:00
|
|
|
#!/bin/bash
|
|
|
|
# These are the same steps we are running in Travis CI
|
|
|
|
|
2023-02-05 19:50:51 +01:00
|
|
|
|
|
|
|
find . -name "*.md" -not -path "./tests/*" | \
|
|
|
|
xargs -I {} \
|
|
|
|
python $(dirname "$0")/../tests/syntax_lint.py {} > /dev/null
|
|
|
|
mdPassed=$?
|
2019-12-23 17:37:33 +01:00
|
|
|
flake8 --max-line-length=100 . && echo "PEP8 Passed"
|
2023-02-05 19:50:51 +01:00
|
|
|
pyPassed=$?
|
|
|
|
if [ $pyPassed -eq 0 ] && [ $mdPassed -eq 0 ];then
|
|
|
|
exit 0
|
|
|
|
else
|
|
|
|
exit 1
|
|
|
|
fi
|