-
-
Notifications
You must be signed in to change notification settings - Fork 61
Expand file tree
/
Copy pathjustfile
More file actions
58 lines (41 loc) · 1.58 KB
/
Copy pathjustfile
File metadata and controls
58 lines (41 loc) · 1.58 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
# main point of interaction with syncall development
# First setup devbox, then the rest of your interactions with the syncall dev
# env should come from the use of `just` and the `justfile`.
# imports ----------------------------------------------------------------------
import 'bootstrap/just/justfile-base'
# variables --------------------------------------------------------------------
# general recipes --------------------------------------------------------------
# Get help
default:
@just --list
devbox *args='':
devbox "$@"
# start a shell sourcing the devbox environment
shell:
devbox shell
# setup recipes ----------------------------------------------------------------
# Setup local development environment
setup-dev: setup-deps setup-pre-commit
# Install pre-commit hooks
setup-pre-commit:
pre-commit install
# Install dependencies for local development
setup-deps:
uv pip install -e ".[all]"
# check / test recipes ---------------------------------------------------------
alias pre-commit := check
# Run all pre-commit hooks against all files (lint, format, and other checks)
check:
pre-commit run --all-files
# Run the test suite
test *args='':
pytest {{ args }}
# scripts ----------------------------------------------------------------------
# Generate shell completions (bash, zsh, fish) for all sync executables
gen-completions:
bash scripts/generate-shell-completions.sh
# self -------------------------------------------------------------------------
# self: Format justfile
self-fmt:
@echo "Formatting justfile..."
just --fmt --unstable