Files
controles/Makefile

39 lines
873 B
Makefile
Raw Normal View History

.PHONY: install run test clean refresh
2025-01-08 00:19:49 -03:00
install:
pip install -r requirements.txt
pip install pytest pytest-cov
2025-01-08 00:19:49 -03:00
clean:
find . -type d -name "__pycache__" -exec rm -r {} +
find . -type f -name "*.pyc" -delete
find . -type f -name "*.pyo" -delete
find . -type f -name "*.pyd" -delete
find . -type f -name ".coverage" -delete
find . -type d -name "*.egg-info" -exec rm -r {} +
find . -type d -name "*.egg" -exec rm -r {} +
find . -type d -name ".pytest_cache" -exec rm -r {} +
find . -type d -name "htmlcov" -exec rm -r {} +
2025-04-09 09:59:12 -03:00
rm -rf ~/.local/share/controles/database.db*
rm -f admin_qr.png
2025-04-09 09:59:12 -03:00
init-db: clean
python init_db.py
2025-04-09 09:59:12 -03:00
seed: init-db
python seed.py
2025-04-09 09:59:12 -03:00
run:
python app.py
run-with-seed: seed run
reset-admin: clean
python create_admin.py
test:
pytest tests/ --cov=app --cov=functions --cov-report=term-missing
refresh: clean install test
python app.py