-
-
Notifications
You must be signed in to change notification settings - Fork 94
/
Justfile
34 lines (25 loc) · 1.17 KB
/
Justfile
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
default:
@just --list
fuzz TARGET:
mkdir -p fuzz/corpus/{{TARGET}}
cargo +nightly fuzz run --release {{TARGET}} fuzz/corpus/{{TARGET}} fuzz/seeds -- -dict=fuzz/dict
lint-rs:
cargo +nightly fmt --all
cargo clippy --all-features --all-targets
cd fuzz && cargo +nightly fmt --all
cd fuzz && cargo clippy --all-features --all-targets
cd profiler && cargo +nightly fmt --all
cd profiler && cargo clippy --all-features --all-targets
lint-py:
uvx ruff check crates/jsonschema-py/python crates/jsonschema-py/tests-py crates/jsonschema-py/benches
uvx ruff check --select I --fix crates/jsonschema-py/python crates/jsonschema-py/tests-py crates/jsonschema-py/benches
uvx mypy crates/jsonschema-py/python
lint: lint-rs lint-py
test-rs *FLAGS:
cargo llvm-cov --html test {{FLAGS}}
test-py *FLAGS:
uvx --with="crates/jsonschema-py[tests]" --refresh pytest crates/jsonschema-py/tests-py -rs {{FLAGS}}
test-py-no-rebuild *FLAGS:
uvx --with="crates/jsonschema-py[tests]" pytest crates/jsonschema-py/tests-py -rs {{FLAGS}}
bench-py *FLAGS:
uvx --with="crates/jsonschema-py[bench]" --refresh pytest crates/jsonschema-py/benches/bench.py --benchmark-columns=min {{FLAGS}}