From 2a2b11adbfa7096348f9ae602de735f6ccd27f0f Mon Sep 17 00:00:00 2001 From: Anshul Gupta Date: Sun, 11 Feb 2024 21:27:46 -0800 Subject: Adds pre-commit --- .pre-commit-config.yaml | 19 +++++++++++++++++++ Cargo.toml | 2 +- 2 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 .pre-commit-config.yaml diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 0000000..4eeda62 --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,19 @@ +repos: + - repo: https://github.com/pre-commit/pre-commit-hooks + rev: v4.5.0 + hooks: + - id: trailing-whitespace + - id: end-of-file-fixer + - id: check-added-large-files + - id: check-case-conflict + - id: check-merge-conflict + - id: check-symlinks + - id: check-toml + - id: forbid-submodules + - id: mixed-line-ending + - repo: https://github.com/ansg191/pre-commit-rust + rev: v1.1 + hooks: + - id: fmt + - id: cargo-check + - id: clippy diff --git a/Cargo.toml b/Cargo.toml index 90ba985..8e7b7b7 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,3 +1,3 @@ [workspace] members = ["trakt", "trakt_macros"] -resolver = "2" \ No newline at end of file +resolver = "2" -- cgit v1.2.3