Page MenuHomeDevCentral

Enable pre-commit
ClosedPublic

Authored by dereckson on Mar 26 2022, 14:23.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Jul 19, 02:09
Unknown Object (File)
Fri, Jul 18, 01:23
Unknown Object (File)
Thu, Jul 17, 18:01
Unknown Object (File)
Wed, Jul 16, 19:42
Unknown Object (File)
Wed, Jul 16, 04:38
Unknown Object (File)
Sun, Jul 13, 10:23
Unknown Object (File)
Wed, Jul 9, 18:29
Unknown Object (File)
Wed, Jul 9, 06:50
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.