Skip to content

Commit 4399a84

Browse files
committed
docs: expand pre-commit verification requirements
- Add comprehensive verification commands that must pass before committing - Include cargo machete, linters, unit tests, and e2e tests - Clarify that all checks must pass before using git add or git commit - Provide clear bash code block with all required commands
1 parent 62e5d7a commit 4399a84

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

.github/copilot-instructions.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,18 @@ This is a deployment infrastructure proof-of-concept for the Torrust ecosystem.
2828
- **With issue branch**: `{type}: [#{issue}] {description}` (when branch name starts with `{issue-number}-`)
2929
- **Without issue branch**: `{type}: {description}` (when working on main or branch without issue number prefix)
3030

31-
3. **Before committing**: Always run `cargo run --bin linter all` and `cargo machete` - all linters must pass and no unused dependencies allowed
31+
3. **Before committing**: Always run these verifications - all must pass before using `git add` or `git commit`:
32+
33+
```bash
34+
# Run cargo machete
35+
cargo machete
36+
# Run linters
37+
cargo run --bin linter all
38+
# Run tests
39+
cargo test
40+
# Run e2e tests
41+
cargo run --bin e2e-tests
42+
```
3243

3344
## 🧪 Build & Test
3445

0 commit comments

Comments
 (0)