Commit Graph

7 Commits

Author SHA1 Message Date
1f62d3dec6
pre-commit(go): use golangci-lint for most checks
[skip ci]
2022-05-28 20:58:56 +02:00
bd58ca6608
pre-commit: alter when 'nix build' runs
All checks were successful
continuous-integration/drone/push Build is passing
* do not run 'nix build' on arbitrary go src file changes, instead
  (except for nix and flake related changes) only run on module-wide
  changes, i.e. when sum,mod files change as these require flake
  vendorSha256 updates or else they would fail to build.
2022-05-25 19:39:31 +02:00
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