-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjustfile
More file actions
50 lines (39 loc) · 1.28 KB
/
justfile
File metadata and controls
50 lines (39 loc) · 1.28 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
generate-ast:
GENERATE_AST=1 cargo test --package pine-parser --lib -- tests::test_parse_testdata_files
# Check code formatting
fmt-check:
cargo fmt --all -- --check
# Format code
fmt:
cargo fmt --all
# Run clippy lints
clippy:
cargo clippy --all-targets --all-features --locked
# Run all lint checks (format + clippy)
lint: fmt-check clippy
# Auto-fix formatting and clippy issues
fix-lint:
cargo fmt --all
cargo clippy --fix --allow-dirty --allow-staged --all-targets --all-features
# Query pine script reference (lists if prefix, shows content if exact match)
ref path="":
cargo run --package pine-reference -- query {{path}}
# Run integration tests with verbose output
test-integration:
cargo test -p pine-integration-tests -- --nocapture
# Run integration tests for a specific test
test-integration-test test_name:
TEST_FILE={{test_name}} cargo test -p pine-integration-tests -- --nocapture
# Run all benchmarks
bench:
cargo bench
# Run a specific benchmark (e.g. just bench-one lexer)
bench-one name:
cargo bench --bench {{name}}
# Compile all examples to verify they build
compile-examples:
#!/usr/bin/env bash
set -euo pipefail
for example in examples/*/; do
[ -f "$example/Cargo.toml" ] && (cd "$example" && cargo build)
done