Commit Graph

5 Commits

Author SHA1 Message Date
c3d18b5250
pre-commit: optimise local hook triggers
All checks were successful
continuous-integration/drone/push Build is passing
* rm 'require_serial = false' occurences as that's the default value,
  which makes it redundant here.
* do not "always_run" hooks
* only run relevant local hooks when pertaining files/file groups have
  changed, e.g. there is no need to run statix linter when no nix files
  have changed or equally it is not necessary to run 'nix build' when
  none of the flake files (flake.{nix,lock}), any '*.nix' or go source,
  mod or sum files have changed.
  all of the above results in much faster pre-commit runs, i.e. shorter
  feedback loops, i.e. faster iteration cycles.
2022-05-24 12:20:52 +02:00
dabb229e07
pre-commit(golang): rm go-lint, add revive,go-sec
[skip ci]
2022-05-24 11:44:55 +02:00
9d29017860
add copyright headers+enforce w/ addlicense
All checks were successful
continuous-integration/drone/push Build is passing
2022-05-21 00:49:13 +02:00
a16bd3ef48
ci,pre-commit: rename 'nix-build' to 'nix build'..
All checks were successful
continuous-integration/drone/push Build is passing
to reflect command's flake nature. nix-build actually uses default.nix -
legacy way of building stuff.
2022-05-16 13:56:26 +02:00
0d3765e0d9
add .pre-commit-config.yaml [skip ci] 2022-05-13 22:58:09 +02:00