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 32 33 34
|
.PHONY: install
install:
pip3 install -U pip setuptools poetry
poetry install
.PHONY: install-actions
install-actions:
pip3 install pip setuptools poetry
poetry config virtualenvs.create false
poetry install
.PHONY: format
format:
poetry run autoflake --remove-all-unused-imports --in-place -r --exclude __init__.py .
poetry run isort .
poetry run black .
.PHONY: lint
lint:
poetry run autoflake --remove-all-unused-imports --in-place -r --exclude __init__.py --check .
poetry run isort --check-only .
poetry run black --check .
poetry run pflake8 .
poetry run mypy tests browsers
.PHONY: test
test:
poetry run pytest
.PHONY: tag
tag:
VERSION=`poetry version | grep -o -E "\d+\.\d+\.\d+(-\w+\.\d+)?"`; \
git tag -s -a $$VERSION -m "Release $$VERSION"; \
echo "Tagged $$VERSION";
|