-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathJustfile
More file actions
53 lines (44 loc) · 895 Bytes
/
Justfile
File metadata and controls
53 lines (44 loc) · 895 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
47
48
49
50
51
52
53
# List the available justfile recipes
[group('general')]
@default:
just --list --unsorted
# List the lines of code in the project
[group('general')]
loc:
scc --remap-unknown "-*- Justfile -*-":"justfile"
# Lint and format code using ruff
[group('test')]
fix:
ruff check
ruff format
# Test code using pytest
[group('test')]
test:
uv run pytest
# Add dependency
[group('dependencies')]
add dep:
uv add {{dep}}
# Add dependency to the development group
[group('dependencies')]
dev dep:
uv add --dev {{dep}}
# Update dependency
[group('dependencies')]
up dep:
uv remove {{dep}}
uv add {{dep}}
uv lock -P {{dep}}
# List the outdated dependencies
[group('dependencies')]
out:
uv pip list --outdated
# Lock/freeze dependencies
[group('dependencies')]
lock:
uv lock
# Format, test, build, and publish to PyPI
[group('deploy')]
deploy: fix test
uv build
uv publish