Commit Graph

3 Commits

Author SHA1 Message Date
Claudio Bley
87cd22efb5
Fix pre-commmit "pprettier" check (#15894)
* Also include `tsx` files in pre-commmit "pprettier" check

* Fix error from "pprettier" pre-commmit check for a single file

The first argument was actually skipped and the tool spits out an ugly error.
2023-01-10 16:40:16 +00:00
Gary Verhaegen
151e12b81a
bump copyright (#16002)
This is the result of:

- Updating `./COPY` to say `2023`.
- Running `./dev-env/bin/dade-copyright-headers update .`
2023-01-04 18:21:15 +01:00
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