-
Notifications
You must be signed in to change notification settings - Fork 519
Expand file tree
/
Copy pathMakefile
More file actions
40 lines (31 loc) · 695 Bytes
/
Makefile
File metadata and controls
40 lines (31 loc) · 695 Bytes
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
.PHONY: clean-pyc clean-build test fmt
clean: clean-build clean-pyc
clean-build:
rm -fr build/
rm -rf .mypy_cache/
rm -rf .tox/
rm -rf site/
rm -fr dist/
rm -fr src/*.egg-info
clean-pyc:
find . -name '*.pyc' -exec rm -f {} +
find . -name '*.pyo' -exec rm -f {} +
find . -name '*~' -exec rm -f {} +
sdist: clean
python -m build -o dist .
ls -l dist
test:
uv pip install -e .
ruff check .
pytest tests/
fmt:
ruff format src tests
coverage:
coverage run --source=dotenv --omit='*tests*' -m py.test tests/ -v --tb=native
coverage report
coverage-html: coverage
coverage html
serve-docs:
uv pip install -r requirements-docs.txt
uv pip install -e .
uv run zensical serve