-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
52 lines (40 loc) · 1.27 KB
/
Copy pathMakefile
File metadata and controls
52 lines (40 loc) · 1.27 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
# SPDX-License-Identifier: AGPL-3.0-or-later | Commercial license available
# © Concepts 1996–2026 Miroslav Šotek. All rights reserved.
# © Code 2020–2026 Miroslav Šotek. All rights reserved.
# ORCID: 0009-0009-3560-0851
# Contact: www.anulum.li | protoscience@anulum.li
.PHONY: test lint fmt check docs preflight clean install
install:
pip install -e ".[dev]"
test:
pytest tests/ -v --tb=short
test-cov:
pytest tests/ --cov=src/scpn_quantum_control --cov-report=term-missing --cov-fail-under=95
lint:
ruff check src/ tests/ examples/
fmt:
ruff format src/ tests/ examples/
ruff check --fix src/ tests/ examples/
check:
ruff check src/ tests/ examples/
ruff format --check src/ tests/ examples/
python tools/audit_test_quality.py
mypy
docs:
mkdocs build -d site
docs-serve:
mkdocs serve
preflight:
ruff check src/ tests/ examples/
ruff format --check src/ tests/ examples/
python tools/audit_test_quality.py
mypy
bandit -r src/ scripts/ -ll -q
pytest tests/ -v --tb=short -x --ignore=tests/test_hardware_runner.py
preflight-quick:
ruff check src/ tests/ examples/
ruff format --check src/ tests/ examples/
mypy
clean:
rm -rf .mypy_cache .pytest_cache .ruff_cache dist build site *.egg-info
find . -type d -name __pycache__ -exec rm -rf {} + 2>/dev/null || true