Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Add pre-commit hook for cargo-machete #234

Merged
merged 1 commit into from
Aug 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading