-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjustfile
More file actions
84 lines (60 loc) · 1.5 KB
/
justfile
File metadata and controls
84 lines (60 loc) · 1.5 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
# Justfile for linting, formatting, and testing
# Default recipe to show available commands
default:
@just --list
# Python linting and formatting with Ruff
lint-python:
uv run poe lint
fix-python:
uv run poe fix
format-python:
uv run poe format
# YAML linting
lint-yaml:
uv run poe lint-yaml
format-yaml:
uv run yamlfix .
# Testing with pytest
test:
uv run poe test
# Test with coverage
test-cov:
uv run poe test-cov
# Generate coverage report
coverage-report:
uv run poe coverage-report
# JSON linting with Ruff (supports JSON)
lint-json:
uv run ruff check --select=JSON *.json **/*.json
format-json:
uv run ruff format *.json **/*.json
# Rust linting and formatting
lint-rust:
cargo clippy -- -D warnings
fix-rust:
cargo clippy --fix --allow-dirty
format-rust:
cargo fmt
check-rust:
cargo check
# TOML formatting (if you have taplo installed)
lint-toml:
taplo fmt --check .
format-toml:
taplo fmt .
# Markdown linting
lint-markdown:
uv run poe lint-markdown
# Run all linting tasks
lint-all: lint-python lint-yaml lint-json lint-rust lint-toml
# Run all formatting tasks
format-all: format-python format-yaml format-json format-rust format-toml
# Run all checks (lint + type check)
check-all: lint-all
# Run tests and checks
test-all: test-cov check-all
# Clean up Python cache files
clean:
find . -type f -name "*.pyc" -delete
find . -type d -name "__pycache__" -delete
find . -type d -name "*.egg-info" -exec rm -rf {} +