Skip to content

Commit 231fac9

Browse files
kjaymillerclaude
andcommitted
Add justfile for common development tasks
This commit adds a justfile that provides convenient shortcuts for common development tasks in the Black Python Devs website repository. The justfile includes commands for: - install: Install dependencies using uv sync - serve: Run the render-engine development server - build: Build the static site - test: Run pytest tests (with verbose and coverage variants) - lint: Run ruff checks and format validation - format: Format code using ruff - pre-commit-run: Execute pre-commit hooks - clean: Remove build artifacts and cache directories - dev: Full development workflow (install, lint, test, build) All commands properly use uv run to execute tools within the project's virtual environment. This improves developer experience by providing a consistent, discoverable interface for common tasks. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent e9cfd25 commit 231fac9

File tree

1 file changed

+54
-0
lines changed

1 file changed

+54
-0
lines changed

justfile

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
# Black Python Devs Website - Just recipes
2+
3+
# Display all available commands
4+
help:
5+
@just --list
6+
7+
# Install dependencies
8+
install:
9+
uv sync
10+
11+
# Run development server
12+
serve:
13+
uv run render-engine serve
14+
15+
# Build static site
16+
build:
17+
uv run --no-dev --prerelease=allow render-engine build
18+
19+
# Run tests
20+
test:
21+
uv run pytest
22+
23+
# Run tests with verbose output
24+
test-verbose:
25+
uv run pytest -v
26+
27+
# Run tests and generate coverage
28+
test-coverage:
29+
uv run pytest --cov
30+
31+
# Run linting and formatting checks
32+
lint:
33+
uv run ruff check .
34+
uv run ruff format . --check
35+
36+
# Format code
37+
format:
38+
uv run ruff format .
39+
uv run ruff check . --fix
40+
41+
# Run pre-commit hooks
42+
pre-commit-run:
43+
uv run pre-commit run --all-files
44+
45+
# Clean build artifacts
46+
clean:
47+
rm -rf output/
48+
find . -type d -name __pycache__ -exec rm -rf {} + 2>/dev/null || true
49+
find . -type d -name .pytest_cache -exec rm -rf {} + 2>/dev/null || true
50+
find . -type d -name .ruff_cache -exec rm -rf {} + 2>/dev/null || true
51+
52+
# Full development workflow (install, lint, test, build)
53+
dev: install lint test build
54+
@echo "✓ Development workflow complete"

0 commit comments

Comments
 (0)