summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.pre-commit-config.yaml19
-rw-r--r--Cargo.toml2
2 files changed, 20 insertions, 1 deletions
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"