-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjustfile
More file actions
58 lines (46 loc) · 1.24 KB
/
justfile
File metadata and controls
58 lines (46 loc) · 1.24 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# justfile for ProTest development
@default:
echo "Hi ! Welcome to ProTest !"
just --list
# Run all linting and formatting
@lint:
ruff format .
ruff check --fix .
mypy --strict protest
@fullcheck:
ruff format --check . && ruff check . # lint
mypy --strict protest # types
uv run pytest -vv # tests
# Run tests with verbose output
@test *options="":
uv run pytest -vv {{ options }}
# Run tests with coverage
@test-cov *options="":
uv run pytest -vv --cov=protest --cov-report=term {{ options }}
# Run tests with coverage and open browser
@test-cov-open *options="":
uv run pytest -vv --cov=protest --cov-report=html {{ options }}
python -m webbrowser htmlcov/index.html
# Development setup
setup:
uv sync --dev
pre-commit install
# Update pre-commit hooks to latest
update-hooks:
pre-commit autoupdate
# Clean cache and temp files
clean:
rm -rf .pytest_cache/
rm -rf .ruff_cache/
rm -rf htmlcov/
find . -type d -name __pycache__ -exec rm -rf {} +
# Serve docs with hot reload
docs:
uv run mkdocs serve --livereload --dirty
# Web Reporter
web-setup:
cd web && npm install
web-dev:
cd web && npm run dev
web-build:
cd web && npm run build