The output of `cd` might be altered by `CDPATH` set on a
system, leading to `dade` being broken because it cannot
read the current path. Instead, using `readlink -f` seem
to get the job done without side effects.
- sets the default value for the hook type to `pre-push`
- allows to configure the hook type using `DADE_PRE_COMMIT_HOOK_TYPE`
- uninstalls all hooks with `direnv` before installation (no manual clean-up needed)
- documents the usage of `pre-commit` in `README.md`
- makes sure `pre-commit` is quiet when run with `direnv`
* 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.