generated from parfeniukink/python_default_configurations
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Makefile
41 lines (30 loc) · 860 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
# ===============================================================
# Dev scripts
# ===============================================================
.PHONY: run
run:
python -m src.run
.PHONY: format
format:
python -m black .
python -m isort .
.PHONY: check
check:
python -m black --check .
python -m isort --check .
python -m ruff .
.PHONY: tests
tests:
python -m pytest -vvv -x ./
# ===============================================================
# GitHub Actions scripts
# ===============================================================
.PHONY: ci.check
ci.lint:
python -m ruff ./
python -m black --check ./
python -m isort --check ./
python -m mypy --no-namespace-packages --disable-error-code "annotation-unchecked" --check-untyped-defs
.PHONY: ci.tests
ci.tests:
python -m pytest --cov-report=term-missing --cov --cov-fail-under=70 ./