Page MenuHomeDevCentral

Allow to use pre-commit on FreeBSD 14+
ClosedPublic

Authored by dereckson on Jun 30 2024, 23:53.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Feb 5, 13:32
Unknown Object (File)
Sat, Feb 1, 05:00
Unknown Object (File)
Wed, Jan 29, 04:54
Unknown Object (File)
Sun, Jan 26, 18:31
Unknown Object (File)
Fri, Jan 24, 00:09
Unknown Object (File)
Wed, Jan 22, 09:29
Unknown Object (File)
Tue, Jan 21, 14:57
Unknown Object (File)
Sun, Jan 19, 12:14
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.