Page MenuHomeDevCentral

Enable pre-commit
ClosedPublic

Authored by dereckson on Mar 26 2022, 14:23.
Tags
None
Referenced Files
F10949433: D2635.id.diff
Thu, Aug 7, 00:14
Unknown Object (File)
Tue, Aug 5, 04:23
Unknown Object (File)
Sun, Aug 3, 07:57
Unknown Object (File)
Thu, Jul 31, 21:30
Unknown Object (File)
Tue, Jul 29, 18:44
Unknown Object (File)
Mon, Jul 28, 15:37
Unknown Object (File)
Sun, Jul 27, 12:53
Unknown Object (File)
Sun, Jul 27, 10:24
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.