forked from baloise/gitopscli
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
37 lines (26 loc) · 722 Bytes
/
Makefile
File metadata and controls
37 lines (26 loc) · 722 Bytes
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
BLACK_ARGS = -l 120 -t py310 gitopscli tests setup.py
init:
pip3 install --editable .
pip3 install -r requirements-test.txt
pip3 install -r requirements-docs.txt
pre-commit install
format:
python3 -m black $(BLACK_ARGS)
format-check:
python3 -m black $(BLACK_ARGS) --check
lint:
python3 -m pylint gitopscli
mypy:
python3 -m mypy --install-types --non-interactive .
test:
python3 -m pytest -vv -s --typeguard-packages=gitopscli
coverage:
coverage run -m pytest
coverage html
coverage report
checks: format-check lint mypy test
image:
DOCKER_BUILDKIT=1 docker build --progress=plain -t gitopscli:latest .
docs:
mkdocs serve
.PHONY: init format format-check lint mypy test coverage checks image docs