-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakefile
More file actions
44 lines (31 loc) · 1.09 KB
/
makefile
File metadata and controls
44 lines (31 loc) · 1.09 KB
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
43
44
.PHONY: init check check-with-coverage check-fail-fast check-survivors lock
init:
uv sync
lock:
uv lock
check:
uv run pytest tests.py
uv run ruff check $(MAIN)
check-with-coverage:
uv run pytest --cov=mutation --cov-report=term --cov-report=html tests.py
check-fail-fast:
uv run pytest -x -vvv --capture=no tests.py
check-survivors:
uv run python3 mutation.py play foobar/test.py --include="foobar/ex.py" --exclude="foobar/test*.py"
lint: ## Lint the code
uv run ruff format $(MAIN)
uv run ruff check --fix $(MAIN)
doc: ## Build the documentation
cd doc && make html
@echo "\033[95m\n\nBuild successful! View the docs homepage at doc/build/html/index.html.\n\032[0m"
clean: ## Clean up
git clean -fX
todo: ## Things that should be done
@grep -nR --color=always --before-context=2 --after-context=2 TODO $(MAIN)
xxx: ## Things that require attention
@grep -nR --color=always --before-context=2 --after-context=2 XXX $(MAIN)
serve: ## Run the server
uvicorn --lifespan on --log-level warning --reload $(MAIN):uvicorn
wip: lint ## clean up code, and commit wip
git add .
git commit -m "wip"