daml/nix
Claudio Bley ca1453ee8c
Add pre-commit config and install hook in dev-env (#15637)
* Add `pre-commit` tool to dev-env

* Add pre-commit configuration

Fixes #15522

* Install pre-commit hooks inside the nix shell

* Limit buildifier hook to files to be comitted

The `:buildifier-fix` tool always runs on all Bazel files (by calling `find`),
which is not useful when using pre-commit.

* Install pre-commit hook only when `DADE_NO_PRE_COMMIT` is unset

Since direnv does not execute the shellHook, install in `.envrc` too.
2022-12-07 13:09:50 +00:00
..
certs Remove custom truststore remains (#280) 2019-04-08 11:19:44 +02:00
nixpkgs bump nix (#15628) 2022-11-24 14:29:09 +00:00
overrides Update scalafmt to 3.5.1. (#13584) 2022-04-28 09:57:04 +00:00
tools fix blackduck (#15728) 2022-11-30 10:09:47 +00:00
bazel-cc-toolchain.nix Hermetic nixpkgs_cc_toolchain (#5976) 2020-05-18 18:03:51 +02:00
bazel-cc-wrapper-response-file.patch Upgrade to Bazel 4.0 (#8798) 2021-02-11 10:08:47 +01:00
bazel-go-toolchain.nix Darwin M1 Support (#13401) 2022-04-07 17:50:53 +02:00
bazel-retry-cache.patch bazel: Retry cache operation for IOException "Operation timed out" (#14274) 2022-06-28 13:37:42 +02:00
bazel.nix fix gsg on node 18 (#15373) 2022-11-28 11:52:47 +01:00
BUILD.bazel update copyright headers (#12240) 2022-01-03 16:36:51 +00:00
default.nix Add pre-commit config and install hook in dev-env (#15637) 2022-12-07 13:09:50 +00:00
nixpkgs.nix bump nix (#15628) 2022-11-24 14:29:09 +00:00
repositories.bzl Bazelify ghc-lib (#12508) 2022-05-19 10:49:16 +02:00
system.nix Darwin M1 Support (#13401) 2022-04-07 17:50:53 +02:00