Page MenuHomeDevCentral

Enable pre-commit
ClosedPublic

Authored by dereckson on Mar 26 2022, 14:23.
Tags
None
Referenced Files
F50128928: D2635.diff
Thu, Sep 17, 02:22
F50128373: D2635.diff
Thu, Sep 17, 02:17
Unknown Object (File)
Tue, Sep 15, 22:46
Unknown Object (File)
Sun, Sep 13, 08:25
Unknown Object (File)
Sun, Sep 13, 05:29
Unknown Object (File)
Sat, Sep 12, 15:15
Unknown Object (File)
Sat, Sep 12, 12:29
Unknown Object (File)
Fri, Sep 4, 12:09
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 Not Applicable
Unit
Tests Not Applicable

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.