forked from zxcalc/quizx
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjustfile
More file actions
38 lines (32 loc) · 843 Bytes
/
justfile
File metadata and controls
38 lines (32 loc) · 843 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
# List the available commands
help:
@just --list --justfile {{justfile()}}
# Prepare the environment for development, installing all the dependencies and
# setting up the pre-commit hooks.
setup:
uv run pre-commit install -t pre-commit
# Run the pre-commit checks.
check:
uv run pre-commit run --all-files
# Build the project.
build:
cargo build
uv run maturin develop
# Run the tests.
test-rust:
cargo test --all-features
# Run the tests.
test-python:
uv run maturin develop && uv run pytest
# Auto-fix all lint warnings.
fix-rust:
cargo clippy --all-targets --all-features --workspace --fix --allow-staged --allow-dirty
# Auto-fix all lint warnings.
fix-python:
uv run ruff check --fix
# Format the rust code.
format-rust:
cargo fmt
# Format the rust code.
format-python:
uv run ruff format