-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjustfile
More file actions
35 lines (27 loc) · 761 Bytes
/
justfile
File metadata and controls
35 lines (27 loc) · 761 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
set positional-arguments
set dotenv-required
set shell := ["bash", "-cue"]
root_dir := `git rev-parse --show-toplevel`
# Default recipe to list all recipes.
[private]
default:
just --list --no-aliases
# Setup project for development
install:
uv pip install -e '.[test,dev]'
# Lint python code
lint: install
uv run ruff check src
# Run unit tests
test: install
uv run pytest
alias dev := nix-develop
# Enter a Nix development shell.
nix-develop *args:
@echo "Starting nix developer shell in './tools/nix/flake.nix'."
@cd "{{root_dir}}" && \
cmd=("$@") && \
{ [ -n "${cmd:-}" ] || cmd=("zsh"); } && \
nix develop ./tools/nix#default --accept-flake-config --command "${cmd[@]}"
# Manage container images.
mod image 'tools/just/image.just'