Page MenuHomeDevCentral

Enable pre-commit
ClosedPublic

Authored by dereckson on Mar 26 2022, 14:23.
Tags
None
Referenced Files
F7739416: D2635.id6657.diff
Fri, May 2, 00:41
F7711638: D2635.id6655.diff
Thu, May 1, 12:32
F7707396: D2635.diff
Thu, May 1, 10:26
Unknown Object (File)
Wed, Apr 30, 06:58
Unknown Object (File)
Tue, Apr 29, 02:15
Unknown Object (File)
Tue, Apr 29, 02:14
Unknown Object (File)
Tue, Apr 22, 12:11
Unknown Object (File)
Mon, Apr 21, 20:27
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 Passed
Unit
No Test Coverage
Branch
main
Build Status
Buildable 4131
Build 4383: arc lint + arc unit

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.