Page MenuHomeDevCentral

Enable pre-commit
ClosedPublic

Authored by dereckson on Mar 26 2022, 14:23.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Dec 17, 15:25
Unknown Object (File)
Tue, Dec 17, 15:08
Unknown Object (File)
Tue, Dec 17, 07:49
Unknown Object (File)
Mon, Dec 16, 03:55
Unknown Object (File)
Sun, Dec 15, 05:00
Unknown Object (File)
Tue, Dec 10, 10:43
Unknown Object (File)
Sun, Dec 8, 23:06
Unknown Object (File)
Sun, Dec 8, 11:15
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.