forked from bruin-data/ingestr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
36 lines (25 loc) · 804 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
.ONESHELL:
.PHONY: test lint format ftl test-ci lint-ci build upload-release
venv: venv/touchfile
venv/touchfile: requirements-dev.txt requirements.txt
test -d venv || python3 -m venv venv
. venv/bin/activate; $(MAKE) deps
touch venv/touchfile
deps:
uv pip install -r requirements-dev.txt
test-ci:
pytest -rP -vv --tb=short --cov=ingestr --no-cov-on-fail
test: venv
. venv/bin/activate; $(MAKE) test-ci
test-specific: venv
. venv/bin/activate; pytest -rP -vv --tb=short --cov=ingestr --no-cov-on-fail --capture=no -k $(test)
lint-ci:
ruff ingestr --fix && ruff format ingestr
mypy --explicit-package-bases ingestr --config-file pyproject.toml
lint: venv
. venv/bin/activate; $(MAKE) lint-ci
tl: test lint
build:
rm -rf dist && python3 -m build
upload-release:
twine upload dist/*