-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
39 lines (29 loc) · 830 Bytes
/
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
PY_TARGET_DIRS=app # settings tests
PY_TARGET_FILES=
PORT=8000
.PHONY: app
app-up:
docker-compose up -d --build
app-down:
docker-compose down -v
app-cleanup:
docker-compose -f tests/docker-compose.yml down -v;
docker-compose down -v;
docker-clean run
# standard commands to run on every commit
format:
autoflake --recursive --ignore-init-module-imports --remove-all-unused-imports --remove-unused-variables --in-place $(PY_TARGET_DIRS)
pyupgrade --keep-runtime-typing $(PY_TARGET_FILES)
isort --color --quiet $(PY_TARGET_DIRS)
black $(PY_TARGET_DIRS) -S -v
check-style:
black --check $(PY_TARGET_DIRS) -S --diff --color
check-imports:
isort --check-only $(PY_TARGET_DIRS)
lint-typing:
mypy $(PY_TARGET_DIRS)
lint-complexity:
flake8 $(PY_TARGET_DIRS)
# special commands
lint-deps:
safety check --full-report