File tree Expand file tree Collapse file tree 4 files changed +73
-0
lines changed
Expand file tree Collapse file tree 4 files changed +73
-0
lines changed Original file line number Diff line number Diff line change 1+ #! /bin/bash -e
2+
3+ # Get Git root directory
4+ REPO_ROOT=$( git rev-parse --show-toplevel)
5+
6+ pushd " ${REPO_ROOT} " 2>&1 > /dev/null
7+
8+ echo " Building documentation..."
9+ pip install -e . # required for python_training_project.version
10+ mkdir -p build
11+ cd docs
12+ pipenv run make html
13+
14+ popd 2>&1 > /dev/null
Original file line number Diff line number Diff line change 1+ #! /bin/bash -e
2+
3+ # Get Git root directory
4+ REPO_ROOT=$( git rev-parse --show-toplevel)
5+
6+ pushd " ${REPO_ROOT} " 2>&1 > /dev/null
7+
8+ echo " Building package..."
9+ python -m build --wheel
10+
11+ popd 2>&1 > /dev/null
Original file line number Diff line number Diff line change 1+ #! /bin/bash -e
2+
3+ # Get Git root directory
4+ REPO_ROOT=$( git rev-parse --show-toplevel)
5+
6+ pushd " ${REPO_ROOT} " 2>&1 > /dev/null
7+
8+ mkdir -p build
9+
10+ STATUS=0
11+ set +e
12+
13+ echo " Running flake8..."
14+ flake8 src/python_training_project --format=pylint > build/flake8.log
15+ if [ $? -ne 0 ]; then
16+ STATUS=1
17+ fi
18+
19+ echo " Running pylint..."
20+ pylint src/python_training_project --msg-template=" {path}:{line}: [{msg_id}, {obj}] {msg} ({symbol})" > build/pylint.log
21+ if [ $? -ne 0 ]; then
22+ STATUS=1
23+ fi
24+
25+ echo " Running mypy..."
26+ mypy src/python_training_project > build/mypy.log
27+ if [ $? -ne 0 ]; then
28+ STATUS=1
29+ fi
30+
31+ set -e
32+ popd 2>&1 > /dev/null
33+
34+ exit $STATUS
Original file line number Diff line number Diff line change 1+ #! /bin/bash -e
2+
3+ # Get Git root directory
4+ REPO_ROOT=$( git rev-parse --show-toplevel)
5+
6+ pushd " ${REPO_ROOT} " 2>&1 > /dev/null
7+
8+ mkdir -p build
9+
10+ echo " Running tests..."
11+ pip install -e .
12+ pytest
13+
14+ popd 2>&1 > /dev/null
You can’t perform that action at this time.
0 commit comments