-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathMakefile
More file actions
31 lines (24 loc) · 759 Bytes
/
Copy pathMakefile
File metadata and controls
31 lines (24 loc) · 759 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
.PHONY: default format lint install check venv coverage
default: check
venv:
uv venv --clear
uv sync
format: venv
uv tool run black cfbs/ tests/
lint: venv
uv tool run black --check cfbs/ tests/ --fast
uv run flake8 cfbs/ tests/ --extend-exclude=tests/tmp --ignore=E203,W503,E722,E731 --max-complexity=100 --max-line-length=160
uv tool run pyright cfbs/
install:
pipx install --force --editable .
check: venv format lint
uv run pytest
coverage: export COVERAGE_PROCESS_START = $(PWD)/.coveragerc
coverage: export COVERAGE_FILE = $(PWD)/.coverage
coverage:
uv run coverage erase
uv run coverage run --parallel-mode -m pytest
uv run bash tests/shell/all.sh
uv run coverage combine
uv run coverage report --fail-under=50
uv run coverage xml