Page MenuHomeDevCentral

Enable pre-commit
ClosedPublic

Authored by dereckson on Mar 26 2022, 14:23.
Tags
None
Referenced Files
F9622237: D2635.id6657.diff
Tue, Jun 10, 09:35
F9618764: D2635.id6656.diff
Tue, Jun 10, 06:57
F9618761: D2635.id6655.diff
Tue, Jun 10, 06:57
Unknown Object (File)
Sun, Jun 8, 23:05
Unknown Object (File)
Sun, Jun 8, 16:25
Unknown Object (File)
Sun, Jun 8, 16:16
Unknown Object (File)
Sun, Jun 8, 00:57
Unknown Object (File)
Sun, Jun 1, 14:32
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.