-
Notifications
You must be signed in to change notification settings - Fork 160
Expand file tree
/
Copy pathjustfile
More file actions
64 lines (49 loc) · 1.32 KB
/
justfile
File metadata and controls
64 lines (49 loc) · 1.32 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
# Default recipe to list all available commands
default:
@just --list
# Install development dependencies
install:
uv sync --all-extras
# Upgrade all uv dependencies
upgrade:
uv sync --all-extras --upgrade
# Install pre-commit hooks
setup-hooks:
uv run pre-commit install
uv run pre-commit install --hook-type commit-msg
# Run pre-commit hooks on all files
lint:
uv run pre-commit run --all-files
# Run ruff linter
ruff-check:
uv run ruff check
# Run ruff formatter check
ruff-format-check:
uv run ruff format --check
# Run ruff formatter (fix)
ruff-format:
uv run ruff format
# Run tests
test:
uv run pytest
# Run tests with coverage
test-cov:
uv run pytest --cov=mitreattack
# Check commit messages in range (default: last commit)
check-commits rev-range="HEAD~1..HEAD":
uv run cz check --rev-range {{ rev-range }}
# Test commitizen accepts valid conventional commit
cz-check-good-commit:
uv run cz check --message "feat: test commit message"
# Test commitizen rejects non-conventional commit
cz-check-bad-commit:
uv run cz check --message "this is not conventional"
# Dry run semantic release (no changes)
release-dry-run:
uv run semantic-release -v --noop version
# Build the package
build:
uv build
# Clean build artifacts
clean:
rm -rf dist/ build/ *.egg-info/