Add alertmanager as supported sender and update deps
This commit is contained in:
parent
05ffc640ed
commit
973e1fd789
18 changed files with 1682 additions and 1155 deletions
23
Makefile
23
Makefile
|
|
@ -1,9 +1,21 @@
|
|||
POETRY ?= poetry run
|
||||
SRC := ops_bot
|
||||
TESTS := tests
|
||||
SHELL := $(shell which bash)
|
||||
APP_VERSION := $(shell git rev-parse --short HEAD)
|
||||
DOCKER ?= docker
|
||||
|
||||
docker-build:
|
||||
DOCKER_BUILDKIT=1 $(DOCKER) build -f docker/Dockerfile \
|
||||
--build-arg=$(APP_VERSION) \
|
||||
-t matrix-ops-bot:latest \
|
||||
.
|
||||
fmt:
|
||||
$(POETRY) black $(SRC)
|
||||
$(POETRY) black $(TESTS)
|
||||
$(POETRY) isort --profile black $(SRC)
|
||||
$(POETRY) isort --profile black $(TESTS)
|
||||
|
||||
lint:
|
||||
$(POETRY) flake8 $(SRC)
|
||||
$(POETRY) bandit --silent --recursive $(SRC)
|
||||
|
|
@ -13,9 +25,12 @@ types:
|
|||
test:
|
||||
$(POETRY) pytest $(TESTS)
|
||||
|
||||
|
||||
|
||||
ci: lint types test
|
||||
|
||||
freeze:
|
||||
poetry export --without dev --format=requirements.txt --output requirements.frozen.txt
|
||||
|
||||
check:
|
||||
$(MAKE) fmt
|
||||
$(MAKE) lint
|
||||
$(MAKE) types
|
||||
$(MAKE) bandit
|
||||
$(MAKE) test
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue