Spaces:
Paused
Paused
File size: 518 Bytes
46aa155 |
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 26 27 28 29 30 31 |
SHELL := /bin/bash
.ONESHELL:
setup: clean install
install:
python -m venv venv; \
source venv/bin/activate; \
pip install -r requirements.txt \
test: clean
source venv/bin/activate; \
pytest tests/
clean-all: clean
rm -rf venv;
clean:
rm -rf .coverage; \
rm -rf .pytest_cache; \
rm -rf tests/.pytest_cache; \
find . -type f -name '*.py[co]' -delete -o -type d -name __pycache__ -delete
check-format:
source venv/bin/activate; \
black --check --diff .
format:
source venv/bin/activate; \
black . |