Page MenuHomeDevCentral

Allow to use pre-commit on FreeBSD 14+
ClosedPublic

Authored by dereckson on Jun 30 2024, 23:53.
Tags
None
Referenced Files
F11658406: D3349.diff
Sat, Sep 6, 22:22
Unknown Object (File)
Fri, Sep 5, 05:01
Unknown Object (File)
Wed, Sep 3, 16:17
Unknown Object (File)
Tue, Sep 2, 08:40
Unknown Object (File)
Tue, Sep 2, 01:43
Unknown Object (File)
Mon, Sep 1, 23:05
Unknown Object (File)
Mon, Sep 1, 21:15
Unknown Object (File)
Sat, Aug 30, 07:33
Subscribers
None

Details

Summary

The pre-commit out-of-the-box hooks have in dependencies ruamel.yaml.clib.
This library doesn't compile correctly under clang 16+.

The language: system allows to use current Python interpreter
instead of creating a new virtualenv for the pre-commit tool.

That allows to create ourselves a virtual environment to install correctly
the ruamel.yaml.clib library, and make pre-commit use it.

Test Plan

pre-commit

Diff Detail

Repository
rOPS Nasqueron Operations
Lint
Lint Passed
Unit
No Test Coverage
Branch
pre-commit-freebsd
Build Status
Buildable 5305
Build 5586: arc lint + arc unit

Event Timeline

dereckson created this revision.
This revision is now accepted and ready to land.Jun 30 2024, 23:54
This revision was automatically updated to reflect the committed changes.