-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathMakefile
More file actions
33 lines (27 loc) · 766 Bytes
/
Makefile
File metadata and controls
33 lines (27 loc) · 766 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
lint: clean
- pip install ruff codespell -q
- ruff check --fix ullm/ tests/
- codespell
format: lint
- pip install ruff -q
- ruff format ullm/ tests/
clean:
- find . -iname "*__pycache__" | xargs rm -rf
- find . -iname "*.pyc" | xargs rm -rf
- rm cobertura.xml -f
- rm testresult.xml -f
- rm .coverage -f
- rm .pytest_cache -rf
- rm build/ -rf
- rm dist -rf
- rm *.egg-info -rf
test: clean
- pip install -e .[test]
- PYTHONPATH=. pytest -vvv --cov=ullm --cov-report term-missing --cov-fail-under=50 --cov-report xml:cobertura.xml --junitxml=testresult.xml tests/
lock-requirements:
- pip install pip-tools -q
- pip-compile --resolver=backtracking -U -o requirements.txt
deps: lock-requirements
- pip-sync
build: lint test
- python -m build