From ea7f2d67ec477a8cada8db8b3be4da4ef30c1ad0 Mon Sep 17 00:00:00 2001 From: seyon Date: Fri, 23 Jun 2023 13:32:32 +0100 Subject: [PATCH] add clippy and format pre-commit --- .gitignore | 2 ++ devenv.nix | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 1dedbeeab..a41fdf909 100644 --- a/.gitignore +++ b/.gitignore @@ -20,3 +20,5 @@ proptest-regressions/ .devenv* devenv.local.nix +# managed by devenv +.pre-commit-config.yaml \ No newline at end of file diff --git a/devenv.nix b/devenv.nix index b41219cf2..a046638ae 100644 --- a/devenv.nix +++ b/devenv.nix @@ -22,7 +22,8 @@ # languages.rust.enable = true; # https://devenv.sh/pre-commit-hooks/ - # pre-commit.hooks.shellcheck.enable = true; + pre-commit.hooks.clippy.enable = true; + pre-commit.hooks.rustfmt.enable = true; # https://devenv.sh/processes/ # processes.ping.exec = "ping example.com";