-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
50 lines (33 loc) · 875 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
46
47
48
49
50
.SILENT: help
.PHONY: help
help:
echo "Pyrlament"
start:
poetry run flask --app web_ui/pyrlament.py run --reload
update:
poetry lock
poetry install
test:
poetry run pytest tests/unit -W ignore::DeprecationWarning
requirements:
pipreqs . --force
format: black ruff autoflake isort no_implicit_optional
ruff:
poetry run ruff --fix .
autoflake:
poetry run autoflake --remove-all-unused-imports -i .
black:
poetry run black .
isort:
poetry run isort --profile black .
no_implicit_optional:
poetry run no_implicit_optional .
check_mypy:
poetry run mypy --incremental --show-error-codes --pretty .
mypy: check_mypy
pyclean:
poetry run pyclean .
check_coverage: pyclean
poetry run coverage run -m pytest tests/unit && poetry run coverage report -m
check_coverage_html: pyclean
poetry run coverage run -m pytest tests/unit && poetry run coverage html