File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -128,6 +128,28 @@ make vet # Vet the Go code
128128make 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
You can’t perform that action at this time.
0 commit comments