diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..ea8c4bf --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/target diff --git a/.pre-commit-hooks.yaml b/.pre-commit-hooks.yaml index 0ffe38d..4239d04 100644 --- a/.pre-commit-hooks.yaml +++ b/.pre-commit-hooks.yaml @@ -2,21 +2,21 @@ name: fmt description: Format files with cargo fmt. entry: cargo fmt - language: system + language: rust types: [rust] args: ["--"] - id: cargo-check name: cargo check description: Check the package for errors. entry: cargo check - language: system + language: rust types: [rust] pass_filenames: false - id: clippy name: clippy description: Lint rust sources entry: cargo clippy - language: system + language: rust args: ["--", "-D", "warnings"] types: [rust] pass_filenames: false diff --git a/Cargo.toml b/Cargo.toml new file mode 100644 index 0000000..1740ab9 --- /dev/null +++ b/Cargo.toml @@ -0,0 +1,9 @@ +[package] +name = "pre-commit-rust" +version = "0.1.0" +edition = "2021" +description = "Dummy cargo repo to ask pre-commit install cargo." + +# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html + +[dependencies] diff --git a/src/main.rs b/src/main.rs new file mode 100644 index 0000000..9f11e8d --- /dev/null +++ b/src/main.rs @@ -0,0 +1,3 @@ +fn main() { + println!("This is only a placeholder."); +}