Skip to content

Commit 64049c4

Browse files
authored
meta: Add formatting checks to AGENTS.md lint instructions (#310)
CI runs `cargo fmt` and `ruff format` but these were missing from the pre-commit linting instructions in AGENTS.md. This caused formatting issues to slip through to CI (e.g. #309). Adds `cargo fmt --all -- --check` and `uv run ruff format --check` to the linting checklist.
1 parent ea90910 commit 64049c4

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

AGENTS.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,14 @@ cargo test -p objectstore-server --all-features
5050

5151
Before committing, run these linting checks (same commands as CI):
5252

53+
### Rust Formatting
54+
55+
Check formatting before committing:
56+
57+
```bash
58+
cargo fmt --all -- --check
59+
```
60+
5361
### Rust Linting
5462

5563
Check for compilation errors and clippy lints:
@@ -68,9 +76,10 @@ cargo doc --workspace --all-features --no-deps --document-private-items
6876

6977
### Python Linting
7078

71-
For Python code, run both linting and type checking:
79+
For Python code, run formatting, linting, and type checking:
7280

7381
```bash
82+
uv run ruff format --check
7483
uv run ruff check
7584
uv run mypy .
7685
```

0 commit comments

Comments
 (0)