Page MenuHomeDevCentral

Enable pre-commit
ClosedPublic

Authored by dereckson on Mar 26 2022, 14:23.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Nov 12, 16:11
Unknown Object (File)
Mon, Nov 11, 07:27
Unknown Object (File)
Sun, Nov 10, 21:00
Unknown Object (File)
Sun, Nov 10, 07:50
Unknown Object (File)
Tue, Nov 5, 06:14
Unknown Object (File)
Mon, Nov 4, 05:13
Unknown Object (File)
Fri, Nov 1, 09:52
Unknown Object (File)
Thu, Oct 31, 04:38
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.