-
-
Notifications
You must be signed in to change notification settings - Fork 170
/
Makefile
48 lines (40 loc) · 1.19 KB
/
Makefile
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
SHELL:=/usr/bin/env bash
.PHONY: format
format:
poetry run isort .
poetry run black --extend-exclude docs/ .
.PHONY: lint
lint:
echo $(shell pwd)
# poetry run flakeheaven lint --show-source .
# poetry run flake8 --statistics --show-source .
poetry run doc8 -q docs
.PHONY: package
package:
poetry check
poetry run pip check
poetry run safety check --full-report
.PHONY: install
install:
poetry install --with main,dev,docs --sync
.PHONY: update
update:
poetry self lock
poetry self install --sync
poetry self update
poetry self add poetry-plugin-export@latest
poetry run pip install --upgrade pip setuptools wheel
poetry update --with main,dev,docs
poetry export --only main --without-hashes -f requirements.txt -o requirements.txt
poetry export --only docs --without-hashes -f requirements.txt -o requirements-docs.txt
poetry export --only dev --without-hashes -f requirements.txt -o requirements-dev.txt
.PHONY: test
test: lint package
.PHONY: run_dev
run_dev:
ps -ef | grep '[s]cdlbot' | grep 'python' | grep -v 'bash' | awk '{print $$2}' | xargs --no-run-if-empty kill -9
set -o allexport; \
source .env-dev; \
poetry run python scdlbot/__main__.py
.DEFAULT:
@cd docs && $(MAKE) $@