Skip to content

Commit

Permalink
Add pre-commit hook for cargo-machete (#234)
Browse files Browse the repository at this point in the history
  • Loading branch information
mondeja authored Aug 24, 2024
1 parent d72b49c commit 6bb8728
Show file tree
Hide file tree
Showing 4 changed files with 53 additions and 45 deletions.
7 changes: 5 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ repos:
- id: markdownlint-cli2
exclude: ^LICENSE\.md$
- repo: https://github.com/mondeja/rust-pc-hooks
rev: v1.1.0
rev: v1.2.0
hooks:
- id: leptosfmt
- repo: https://github.com/doublify/pre-commit-rust
Expand Down Expand Up @@ -133,8 +133,11 @@ repos:
deprecated,
]
- repo: https://github.com/mondeja/rust-pc-hooks
rev: v1.1.0
rev: v1.2.0
hooks:
- id: cargo-machete
args:
- --skip-target-dir
- id: cargo-readme
alias: cargo-readme-workspace
name: cargo-readme-workspace
Expand Down
85 changes: 44 additions & 41 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion end2end/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[package]
name = "leptos-fluent-tests"
name = "leptos-fluent-end2end-tests"
edition = "2021"
version = "0.1.0"
publish = false
Expand All @@ -21,3 +21,6 @@ web-sys = { version = "0.3", features = [
wasm-bindgen = "0.2"
wasm-bindgen-test = "0.3"
leptos = "0.6"

[package.metadata.cargo-machete]
ignored = ["fluent-templates"]
1 change: 0 additions & 1 deletion examples/csr-complete/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ fluent-templates = { version = "0.10", default-features = false, features = [
"walkdir"
] }
console_error_panic_hook = "0"
web-sys = "0"

[[bin]]
name = "main"
Expand Down

0 comments on commit 6bb8728

Please sign in to comment.