Skip to content

Commit

Permalink
Formatting & pre-commit hook for clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
jadelily18 committed Feb 29, 2024
1 parent 8a034cd commit 11d9dd6
Show file tree
Hide file tree
Showing 7 changed files with 176 additions and 116 deletions.
6 changes: 6 additions & 0 deletions .cargo-husky/hooks/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash

set -e

echo "cargo clippy -- -D warnings"
cargo clippy -- -D warnings
22 changes: 20 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
# Generated by Cargo
# will have compiled files and executables
debug/
target/

# Remove Cargo.lock from gitignore if creating an executable, leave it for libraries
# More information here https://doc.rust-lang.org/cargo/guide/cargo-toml-vs-cargo-lock.html
Cargo.lock

# These are backup files generated by rustfmt
**/*.rs.bk

# MSVC Windows builds of rustc generate these, which store debugging information
*.pdb


.idea
/target
/test-packs

docker-compose.dev.yml

/test-packs
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"GitHooks.hooksDirectory": "/home/jade/Projects/Minecraft/Tools/prismarine/.git/hooks"
}
27 changes: 17 additions & 10 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 Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ edition = "2021"
clap = { version = "4.3.19", features = ["derive"] }
colored = "2.0.4"

toml = "0.7.6"
toml = "0.8.10"
serde = { version = "1.0.180", features = ["derive"] }
serde_json = "1.0.104"

Expand All @@ -29,3 +29,6 @@ regex = "1.9.1"
dotenvy = "0.15.7"

thiserror = "1.0.44"

[dev-dependencies]
cargo-husky = { version = "1.5.0", features = ["user-hooks"] }
Loading

0 comments on commit 11d9dd6

Please sign in to comment.