-
Notifications
You must be signed in to change notification settings - Fork 0
/
check.sh
executable file
·25 lines (21 loc) · 920 Bytes
/
check.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/usr/bin/env bash
# -----------------------------------------------------------------------------
# Name :checks.sh
# Description :Script for running all package (pytest, coverage, mypy and
# flake8) checks.
# Author :Merlin Unterfinger <[email protected]>
# Date :2021-01-18
# Version :0.3.0
# Usage :./checks.sh
# Notes :
# Bash :5.1.4
# =============================================================================
echo '*** pytest: Tests and coverage ***'
poetry run pytest --cov=bgpy tests/
echo -e '\n*** mypy: Static type checks ***'
poetry run mypy --config-file pyproject.toml .
echo -e '\n*** flake8: Code linting ***'
poetry run flake8 . --count --exit-zero --max-complexity=10 --statistics
echo -e '\n*** Building documentation ***'
cd docs && poetry run sphinx-apidoc --force -o source/ ../bgpy
poetry run make html && cd ..