forked from numaproj/numalogic-prometheus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
40 lines (32 loc) · 1.07 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
# Check Python
PYTHON:=$(shell command -v python 2> /dev/null)
ifndef PYTHON
PYTHON:=$(shell command -v python3 2> /dev/null)
endif
ifndef PYTHON
$(error "Python is not available, please install.")
endif
clean:
@rm -rf build dist .eggs *.egg-info
@rm -rf .benchmarks .coverage coverage.xml htmlcov report.xml .tox
@find . -type d -name '.mypy_cache' -exec rm -rf {} +
@find . -type d -name '__pycache__' -exec rm -rf {} +
@find . -type d -name '*pytest_cache*' -exec rm -rf {} +
@find . -type f -name "*.py[co]" -exec rm -rf {} +
format: clean
poetry run black numaprom/ tests/
poetry run black starter.py
lint: format
poetry run ruff check --fix .
# install all dependencies
setup:
poetry install --with dev --all-extras
test:
poetry run pytest -v tests/
requirements:
poetry export -f requirements.txt --output requirements.txt --without-hashes
requirements-dev:
poetry export -f requirements.txt --with dev --output requirements-dev.txt --without-hashes
pipeline:
kustomize build manifests/prerequisites | kubectl apply -f -
kustomize build manifests/ | kubectl apply -f -