2022-07-22 12:05:59 +00:00
|
|
|
POETRY ?= poetry run
|
|
|
|
|
SRC := ops_bot
|
|
|
|
|
TESTS := tests
|
|
|
|
|
fmt:
|
|
|
|
|
$(POETRY) black $(SRC)
|
|
|
|
|
$(POETRY) isort --profile black $(SRC)
|
|
|
|
|
lint:
|
|
|
|
|
$(POETRY) flake8 $(SRC)
|
|
|
|
|
$(POETRY) bandit --silent --recursive $(SRC)
|
|
|
|
|
types:
|
|
|
|
|
$(POETRY) mypy $(SRC)
|
|
|
|
|
|
|
|
|
|
test:
|
2022-07-22 12:59:55 +00:00
|
|
|
$(POETRY) pytest $(TESTS)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-11-30 15:40:38 +00:00
|
|
|
ci: lint types test
|
|
|
|
|
|
|
|
|
|
freeze:
|
2022-12-01 17:00:28 +00:00
|
|
|
poetry export --without dev --format=requirements.txt --output requirements.frozen.txt
|