-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
45 lines (31 loc) · 772 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
40
41
42
43
44
45
.PHONY: run install dev mypy pylint flake8 bandit flynt lint test coverage check docker-test
PACKAGE_DIR:=python_template_project
run:
poetry run python main.py
install:
poetry install --no-dev
dev:
poetry install && poetry run pre-commit install
flake8:
poetry run flake8 $(PACKAGE_DIR) tests main.py
mypy:
poetry run mypy $(PACKAGE_DIR) tests main.py
pylint:
poetry run pylint $(PACKAGE_DIR) tests main.py
bandit:
poetry run bandit -r $(PACKAGE_DIR) main.py
flynt:
poetry run flynt $(PACKAGE_DIR) main.py
lint:
$(MAKE) flake8
$(MAKE) pylint
$(MAKE) mypy
$(MAKE) bandit
test:
poetry run pytest
coverage:
poetry run pytest --cov=$(PACKAGE_DIR) tests
check:
poetry run pre-commit run --all-files
docker-test:
docker build -f Dockerfile-Make .