-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathjustfile
More file actions
84 lines (63 loc) · 1.54 KB
/
Copy pathjustfile
File metadata and controls
84 lines (63 loc) · 1.54 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
# Development task runner for zarrnii
# Requires: just (https://just.systems/)
# Install pre-commit hooks
setup:
uv run pre-commit install
# Run linting with flake8
lint:
uv run flake8 .
# Format code with black
format:
uv run black .
# Sort imports with isort
sort-imports:
uv run isort .
# Check code formatting with black (no changes)
check-format:
uv run black --check .
# Check import sorting with isort (no changes)
check-imports:
uv run isort --check .
# Run tests with pytest
test:
uv run pytest -v
# Quality fix
quality_fix: format sort-imports
# Run tests with coverage reporting
test-cov:
uv run pytest --cov=zarrnii --cov-report=term-missing
# Run tests with HTML coverage report
test-cov-html:
uv run pytest --cov=zarrnii --cov-report=html
@echo "Coverage report generated in htmlcov/index.html"
# Alias for test
pytest: test
# Serve documentation locally
serve-docs:
uv run mkdocs serve
# Build documentation
build-docs:
uv run mkdocs build
# Deploy documentation to GitHub Pages
deploy-docs:
uv run mkdocs gh-deploy
# Install dependencies
install:
uv sync --dev
# Run basic import test
test-import:
uv run python -c "from zarrnii import ZarrNii; print('Import successful')"
# Run all quality checks (same as CI)
quality:
./scripts/quality-check.sh
# Run individual quality checks
quality-individual: check-format check-imports lint
# Build package
build:
uv build
# Clean build artifacts
clean:
rm -rf dist/ build/ *.egg-info/
# Show available tasks
help:
@just --list