Skip to content

Commit 44b21d8

Browse files
committed
chore: remove unused regex dependency and update pre-commit requirements
- Remove unused regex dependency from Cargo.toml - Update copilot instructions to require cargo machete before commits - Ensure no unused dependencies in the codebase
1 parent 6e6c511 commit 44b21d8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/copilot-instructions.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,14 @@ 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` - all linters must pass
31+
3. **Before committing**: Always run `cargo run --bin linter all` and `cargo machete` - all linters must pass and no unused dependencies allowed
3232

3333
## 🧪 Build & Test
3434

3535
- **Build**: `cargo build`
3636
- **Test**: `cargo test`
3737
- **Lint**: `cargo run --bin linter all` (mandatory before commits)
38+
- **Dependencies**: `cargo machete` (mandatory before commits - no unused dependencies)
3839
- **E2E**: `cargo run --bin e2e-tests`
3940

4041
Follow the project conventions and ensure all checks pass.

Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ path = "src/bin/linter.rs"
2828
tokio = { version = "1.0", features = [ "full" ] }
2929
anyhow = "1.0"
3030
clap = { version = "4.0", features = [ "derive" ] }
31-
regex = "1.0"
3231
serde = { version = "1.0", features = [ "derive" ] }
3332
serde_json = "1.0"
3433
tempfile = "3.0"

0 commit comments

Comments
 (0)