-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathMakefile
More file actions
45 lines (37 loc) · 969 Bytes
/
Copy pathMakefile
File metadata and controls
45 lines (37 loc) · 969 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
35
36
37
38
39
40
41
42
43
44
45
install:
@command -v uv >/dev/null 2>&1 || { echo "uv is not installed. Installing uv..."; curl -LsSf https://astral.sh/uv/0.6.12/install.sh | sh; source $HOME/.local/bin/env; }
uv sync --all-extras
# Linting and formatting
lint:
uv run ruff check src/
uv run ruff format --check src/
lint-fix:
uv run ruff check --fix src/
uv run ruff format src/
uv run isort src/
format:
uv run black src/
uv run isort src/
uv run ruff format src/
check:
uv run ruff check src/
uv run black --check src/
uv run isort --check-only src/
# Testing
test:
uv run pytest
test-cov:
uv run pytest --cov=src --cov-report=html --cov-report=term-missing
test-cov-xml:
uv run pytest --cov=src --cov-report=xml --cov-report=term-missing
# Clean up
clean:
rm -rf build/
rm -rf dist/
rm -rf *.egg-info/
rm -rf .pytest_cache/
rm -rf .coverage
rm -rf htmlcov/
rm -rf coverage.xml
find . -type d -name __pycache__ -exec rm -rf {} +
find . -type f -name "*.pyc" -delete