Reorganise a little to put scripts in bin
This commit is contained in:
parent
f99f67789d
commit
22ad36fb09
4 changed files with 9 additions and 5 deletions
2
bin/coverage.sh
Executable file
2
bin/coverage.sh
Executable file
|
@ -0,0 +1,2 @@
|
|||
#!/usr/bin/env bash
|
||||
pytest --cov=. --cov-report=html
|
11
bin/run.sh
Executable file
11
bin/run.sh
Executable file
|
@ -0,0 +1,11 @@
|
|||
#!/usr/bin/env bash
|
||||
set -x
|
||||
set -e
|
||||
|
||||
git pull
|
||||
if [ ! -d .venv ]; then
|
||||
python3 -m venv .venv
|
||||
fi
|
||||
source .venv/bin/activate
|
||||
python -m pip install -r requirements.txt
|
||||
python matchy.py
|
7
bin/test.sh
Executable file
7
bin/test.sh
Executable file
|
@ -0,0 +1,7 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
# Check formatting and linting
|
||||
flake8 --max-line-length 120 $(git ls-files '*.py')
|
||||
|
||||
# Run pytest
|
||||
pytest
|
Loading…
Add table
Add a link
Reference in a new issue