-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathjustfile
More file actions
46 lines (36 loc) · 1011 Bytes
/
justfile
File metadata and controls
46 lines (36 loc) · 1011 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
46
# Show available commands
_default:
@printf 'Automation tasks:\n'
@just --list --unsorted --list-heading '' --list-prefix ' - '
# Install dependencies
setup:
uv sync --all-groups
# Run all checks (format, lint, test)
check: format lint test
# Format code with ruff
format *files='':
uv run ruff check --fix {{ files }}
uv run ruff format {{ files }}
# Lint source code
lint *files='':
uv run ruff check {{ files }}
uv run ruff format --check {{ files }}
# Run tests
test *args='':
uv run pytest -v {{ args }}
# Run tests with coverage
test-cov:
uv run pytest --cov=countdown --cov=tests --cov-report=term-missing --cov-report=html
# Run tests across all Python versions in parallel
test-all:
uvx nox -p -s tests
# Bump version (usage: just bump-version patch|minor|major)
bump value:
uv version --bump {{ value }}
# Build the package
build:
uv sync # Force uv version error if applicable
uv build --clear
# Publish to PyPI
publish:
uv publish