-
Notifications
You must be signed in to change notification settings - Fork 62
/
Makefile
42 lines (29 loc) · 911 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
42
.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
deps-ci:
uv pip install --system -r requirements-dev.txt
test-ci:
pytest -n logical -x -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 --capture=no -k $(test)
lint-ci:
ruff check ingestr --fix && ruff format ingestr
mypy --config-file pyproject.toml --explicit-package-bases ingestr
lint: venv
. venv/bin/activate; $(MAKE) lint-ci
lint-docs:
vale docs --glob='!**/.vitepress/**'
tl: test lint
build:
rm -rf dist && python3 -m build
upload-release:
twine upload --verbose dist/*