-
Notifications
You must be signed in to change notification settings - Fork 10
/
Makefile
39 lines (31 loc) · 1.04 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
# 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/
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 -