git-hooks.nix
git-hooks.nix copied to clipboard
Add yamlfmt
Add support for yamlfmt. I mostly copy/pasted from yamllint. So, it might be incomplete, but it seems to be doing what I expect it to do.
You you rebase?
ping
error: builder for '/nix/store/z81000y8iafhgyq3d0z4cgafckmi64sq-pre-commit-hook-ensure-sops-1.1.drv' failed with exit code 1;
last 10 log lines:
> wrapping `/nix/store/g00s2qmmmwq4ha7w01qsfangnv6cj539-pre-commit-hook-ensure-sops-1.1/bin/pre-commit-hook-ensure-sops'...
> Executing pythonRemoveTestsDir
> Finished executing pythonRemoveTestsDir
> running install tests
> Traceback (most recent call last):
> File "/nix/store/g00s2qmmmwq4ha7w01qsfangnv6cj539-pre-commit-hook-ensure-sops-1.1/bin/.pre-commit-hook-ensure-sops-wrapped", line 6, in <module>
> from pre_commit_hook_ensure_sops.__main__ import main
> File "/nix/store/g00s2qmmmwq4ha7w01qsfangnv6cj539-pre-commit-hook-ensure-sops-1.1/lib/python3.10/site-packages/pre_commit_hook_ensure_sops/__main__.py", line 7, in <module>
> from ruamel.yaml import YAML
> ModuleNotFoundError: No module named 'ruamel.yaml'
For full logs, run 'nix log /nix/store/z81000y8iafhgyq3d0z4cgafckmi64sq-pre-commit-hook-ensure-sops-1.1.drv'.
Tried fixing it locally, but then I started to run into some weird errors with OCaml and macOS codesign. Shelving this for now.
Closing in favor of #453