-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
53 lines (40 loc) · 1.16 KB
/
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
51
52
53
SHELL:=/bin/bash
PACKAGE_NAME:=armasec
ROOT_DIR:=$(shell dirname $(shell pwd))
install:
poetry install --extras=cli
test: install
poetry run pytest
mypy: install
poetry run mypy ${PACKAGE_NAME} --pretty
lint: install
poetry run ruff check ${PACKAGE_NAME} tests armasec_cli
qa: test mypy lint
echo "All quality checks pass!"
format: install
poetry run ruff check --fix ${PACKAGE_NAME} tests armasec_cli
poetry run ruff format ${PACKAGE_NAME} tests armasec_cli
example: install
poetry run uvicorn --host 0.0.0.0 --app-dir=examples basic:app --reload
publish: install
git tag v$(poetry version --short)
git push origin v$(poetry version --short)
docs: install
poetry run mkdocs build --config-file=docs/mkdocs.yaml
docs-serve: install
poetry run mkdocs serve --config-file=docs/mkdocs.yaml
clean: clean-eggs clean-build
@find . -iname '*.pyc' -delete
@find . -iname '*.pyo' -delete
@find . -iname '*~' -delete
@find . -iname '*.swp' -delete
@find . -iname '__pycache__' -delete
@rm -r .mypy_cache
@rm -r .pytest_cache
clean-eggs:
@find . -name '*.egg' -print0|xargs -0 rm -rf --
@rm -rf .eggs/
clean-build:
@rm -fr build/
@rm -fr dist/
@rm -fr *.egg-info