-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
34 lines (27 loc) · 719 Bytes
/
Copy pathMakefile
File metadata and controls
34 lines (27 loc) · 719 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
34
# Install development dependencies
install-dev:
pip install -r requirements-dev.txt
pip install pyright
# Run tests
test:
pytest ./tests -v
# Run tests with coverage report
test-cov:
pytest ./tests --cov=./ --cov-report=term-missing --cov-report=html
# Run type checking with pyright
# typecheck:
# pyright
# Lint code
lint:
ruff check .
# Format code
format:
ruff format .
# Clean up generated files
clean:
find . -type d -name "__pycache__" -exec rm -r {} +
find . -type d -name ".mypy_cache" -exec rm -r {} +
find . -type d -name ".pyrightcache" -exec rm -r {} +
rm -f .coverage coverage.xml
rm -rf htmlcov/ .pytest_cache/ .ruff_cache/
.PHONY: install-dev test test-cov typecheck lint format clean