Page MenuHomeDevCentral

Enable pre-commit
ClosedPublic

Authored by dereckson on Mar 26 2022, 14:23.
Tags
None
Referenced Files
F57865610: D2635.id6657.diff
Mon, Nov 23, 16:06
F57865603: D2635.id6655.diff
Mon, Nov 23, 16:06
F57865602: D2635.id.diff
Mon, Nov 23, 16:06
F57865588: D2635.id6656.diff
Mon, Nov 23, 16:06
F57856027: D2635.id6657.diff
Mon, Nov 23, 12:08
Unknown Object (File)
Sun, Nov 8, 17:03
Unknown Object (File)
Sun, Nov 8, 15:04
Unknown Object (File)
Thu, Nov 5, 16:37
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.