-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
41 lines (33 loc) · 935 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-setup: ## Prepares a fresh development environment
( \
python3 -m venv .venv; \
. .venv/bin/activate; \
pip install -q -r requirements.txt; \
)
test: ## Runs necessary tests on the current environment
. .venv/bin/activate && py.test tests/
lint: ## Runs linter on the current environment
( \
. .venv/bin/activate; \
python3 -m pyright; \
)
dist: clean ## Builds the package with the version described on ./VERSION
( \
. .venv/bin/activate; \
python3 -m build .; \
)
clean: ## Cleans the environment and dist packages
rm -rf airflow_provider_whylogs.egg-info
rm -rf .pytest_cache
rm -rf dist
help:
@python -c "$$PRINT_HELP_PYSCRIPT" < $(MAKEFILE_LIST)
define PRINT_HELP_PYSCRIPT
import re, sys
for line in sys.stdin:
match = re.match(r'^([a-zA-Z_-]+):.*?## (.*)$$', line)
if match:
target, help = match.groups()
print("%-20s %s" % (target, help))
endef
export PRINT_HELP_PYSCRIPT