Switch from `pre-commit` to `prek`
- 主要言語
- Java
- スター
- 3.1k
- フォーク
- 1.4k
- 平均マージ
- 6日 19時間
- マージ済み PR(30日)
- 32
説明
"Although prek is pretty new, it's already powering real‑world projects like [CPython](https://github.com/python/cpython), [Apache Airflow](https://github.com/apache/airflow), [FastAPI](https://github.com/fastapi/fastapi), and more projects are picking it up—see [Who is using prek?](https://prek.j178.dev/#who-is-using-prek). If you're looking for an alternative to pre-commit, please give it a try—we'd love your feedback!"
https://github.com/j178/prek
https://prek.j178.dev
Example workflows:
https://github.com/apache/lucenenet/blob/master/.github/workflows/pre-commit.yml
https://github.com/apache/sedona/blob/master/.github/workflows/pre-commit-manual.yml
https://github.com/apache/sedona/blob/master/.github/workflows/pre-commit.yml
Quick read first:
https://github.com/apache/lucenenet/blob/master/PREK.md
Longer read:
https://github.com/apache/sedona/blob/master/docs/setup/compile.md#code-quality-checks-with-prek-uv-and-make
Example Makefile https://github.com/apache/sedona/blob/master/Makefile
refs https://github.com/apache/cloudstack/pull/8491
refs https://github.com/apache/cloudstack/pull/12836
ASF Approved:
https://github.com/apache/infrastructure-actions/blob/1affe4095bb84ec7d39f229556b6906232d39c92/approved_patterns.yml#L229
コントリビューションガイド
調査の方向性
まず、CloudStack の現在の pre-commit 設定、GitHub workflow のエントリーポイント、Makefile のターゲットを見つけることから始めます。この issue ではそれらのパスは指定されていません。これらのエントリーポイントを、リンクされている Lucene.NET と Sedona の PREK.md および workflow の例と比較し、その後、既存のチェックが prek で正常に実行され、古い pre-commit パスがもはや使われていないことを確認します。
索引モデルが issue の本文から書いたものです。
評価
- 領域
- build-system, ci-cd, tooling
- issue の種類
- 機能追加
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 活発
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 52/100