Reorganise a little to put scripts in bin

This commit is contained in:
Marc Di Luzio 2024-08-11 18:04:21 +01:00
parent f99f67789d
commit 22ad36fb09
4 changed files with 9 additions and 5 deletions

2
bin/coverage.sh Executable file
View file

@ -0,0 +1,2 @@
#!/usr/bin/env bash
pytest --cov=. --cov-report=html

11
bin/run.sh Executable file
View 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
View 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