Page MenuHomeDevCentral

Enable pre-commit
ClosedPublic

Authored by dereckson on Mar 26 2022, 14:23.
Tags
None
Referenced Files
F9567505: D2635.diff
Sun, Jun 8, 00:57
Unknown Object (File)
Sun, Jun 1, 14:32
Unknown Object (File)
Mon, May 26, 14:31
Unknown Object (File)
Mon, May 26, 06:06
Unknown Object (File)
Wed, May 21, 19:55
Unknown Object (File)
Tue, May 20, 18:12
Unknown Object (File)
Tue, May 20, 14:47
Unknown Object (File)
Tue, May 20, 12:40
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.