Page MenuHomeDevCentral

Enable pre-commit
ClosedPublic

Authored by dereckson on Mar 26 2022, 14:23.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Apr 11, 04:29
Unknown Object (File)
Tue, Apr 8, 14:41
Unknown Object (File)
Tue, Apr 8, 10:49
Unknown Object (File)
Thu, Apr 3, 05:23
Unknown Object (File)
Wed, Apr 2, 10:33
Unknown Object (File)
Mon, Mar 31, 22:32
Unknown Object (File)
Thu, Mar 27, 05:25
Unknown Object (File)
Tue, Mar 25, 21:33
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.