Page MenuHomeDevCentral

Enable pre-commit
ClosedPublic

Authored by dereckson on Mar 26 2022, 14:23.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Jan 21, 22:59
Unknown Object (File)
Tue, Jan 21, 10:04
Unknown Object (File)
Tue, Jan 21, 09:41
Unknown Object (File)
Tue, Jan 21, 04:02
Unknown Object (File)
Sun, Jan 19, 17:12
Unknown Object (File)
Sun, Jan 19, 08:32
Unknown Object (File)
Sun, Jan 19, 06:26
Unknown Object (File)
Sat, Jan 18, 00:47
Subscribers
None

Details

Summary

To offer a better repository linting experience,
a lot of tests can be done locally quickly.

Provide pre-commit Git hook using the pre-commit framework
with linters for Python (black), shell scripts (shellcheck),
JSON, XML, YAML, Salt states (salt-lint) and regular files.

Fixes T1715.

Test Plan
  • make
  • pre-commit run --all-files

Diff Detail

Repository
rOPS Nasqueron Operations
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

dereckson created this revision.
This revision is now accepted and ready to land.Mar 26 2022, 14:25
This revision was automatically updated to reflect the committed changes.