Simplify SDK fmt recipe paths

Co-authored-by: Codex <noreply@openai.com>
This commit is contained in:
Ahmed Ibrahim
2026-05-10 15:49:51 +03:00
parent 3ae0e5df76
commit acd8ede25b

View File

@@ -1,6 +1,7 @@
set working-directory := "codex-rs"
set positional-arguments
repo_root := justfile_directory()
rust_min_stack := "8388608" # 8 MiB
# Display help
@@ -33,9 +34,9 @@ app-server-test-client *args:
# Format Rust and Python SDK code.
[no-cd]
fmt:
cd {{ justfile_directory() }}/codex-rs && cargo fmt -- --config imports_granularity=Item 2>/dev/null
cd {{ justfile_directory() }}/sdk/python && uv run --extra dev ruff check --fix --fix-only .
cd {{ justfile_directory() }}/sdk/python && uv run --extra dev ruff format .
cargo fmt --manifest-path "{{ repo_root }}/codex-rs/Cargo.toml" --all -- --config imports_granularity=Item 2>/dev/null
uv run --project "{{ repo_root }}/sdk/python" --extra dev ruff check --fix --fix-only "{{ repo_root }}/sdk/python"
uv run --project "{{ repo_root }}/sdk/python" --extra dev ruff format "{{ repo_root }}/sdk/python"
fix *args:
cargo clippy --fix --tests --allow-dirty "$@"