Page MenuHomeDevCentral

Enable pre-commit
ClosedPublic

Authored by dereckson on Mar 26 2022, 14:23.
Tags
None
Referenced Files
F10982374: D2635.id6655.diff
Fri, Aug 8, 09:29
F10978762: D2635.id6655.diff
Fri, Aug 8, 04:40
F10976306: D2635.id6657.diff
Fri, Aug 8, 02:22
F10971765: D2635.id6656.diff
Thu, Aug 7, 21:15
F10971069: D2635.diff
Thu, Aug 7, 20:56
Unknown Object (File)
Thu, Aug 7, 00:14
Unknown Object (File)
Tue, Aug 5, 04:23
Unknown Object (File)
Sun, Aug 3, 07:57
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 4130
Build 4382: 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.