Page MenuHomeDevCentral

Enable pre-commit
ClosedPublic

Authored by dereckson on Mar 26 2022, 14:23.
Tags
None
Referenced Files
F11030990: D2635.diff
Sun, Aug 10, 02:41
Unknown Object (File)
Sat, Aug 9, 02:14
Unknown Object (File)
Fri, Aug 8, 12:29
Unknown Object (File)
Fri, Aug 8, 12:29
Unknown Object (File)
Fri, Aug 8, 11:34
Unknown Object (File)
Fri, Aug 8, 09:29
Unknown Object (File)
Fri, Aug 8, 04:40
Unknown Object (File)
Fri, Aug 8, 02:22
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.