PACKAGE_NAME := $(firstword $(shell poetry version)) | |
PACKAGE_DIR := $(subst -,_,$(PACKAGE_NAME)) | |
PACKAGE_VERSION := $(shell poetry version --short) | |
generate_sources: | |
cp -f ./../enums.py "$(PACKAGE_DIR)/enums.py" | |
setup: | |
poetry install | |
lint: generate_sources | |
poetry run black . | |
poetry run isort . | |
poetry run flake8 "$(PACKAGE_DIR)" "tests" || true | |
poetry run mypy --show-error-codes --pretty . | |
test: generate_sources | |
poetry run pytest | |
build: generate_sources | |
poetry build | |