Skip to content

Commit 1e1a081

Browse files
ChughShilpaclaude
andcommitted
docs(agents): add targeted lint/format commands to AGENTS.md
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 7c161d0 commit 1e1a081

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

AGENTS.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,28 @@ make vet # Vet the Go code
128128
make golangci-lint # Verify the Go code
129129
```
130130

131+
### Targeted lint/format
132+
133+
For quick feedback on specific files or packages instead of running project-wide `make` targets:
134+
135+
```bash
136+
# Go
137+
make golangci-lint-install # Install the linter (one-time setup)
138+
golangci-lint run ./pkg/controller/... # Lint a single Go package (package-level)
139+
go vet ./pkg/controller/... # Vet a single Go package (package-level)
140+
gofmt -w path/to/file.go # Format a single Go file
141+
142+
# Python
143+
pip install flake8 black isort # Install Python linters (one-time setup)
144+
flake8 path/to/file.py # Lint a single Python file
145+
black path/to/file.py # Format a single Python file
146+
isort --profile black path/to/file.py # Sort imports in a single Python file
147+
148+
# Rust
149+
cargo fmt --manifest-path pkg/data_cache/Cargo.toml # Format the data_cache crate (crate-level)
150+
cargo check --manifest-path pkg/data_cache/Cargo.toml # Type-check the data_cache crate (crate-level)
151+
```
152+
131153
**Code generation** (always run after modifying the APIs):
132154

133155
```bash

0 commit comments

Comments
 (0)