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
|
venv = venv
bin = ${venv}/bin/
pysources = src tests/
install: install-python
install-python:
python3 -m venv ${venv}
${bin}pip install -U pip wheel
${bin}pip install -U build
${bin}pip install -r requirements.txt
check:
${bin}black --check --diff ${pysources}
${bin}ruff check ${pysources}
${bin}mypy ${pysources}
format:
${bin}ruff check --fix ${pysources}
${bin}black ${pysources}
build:
${bin}python -m build
publish:
${bin}twine upload dist/*
test:
${bin}pytest
|