apache / apache/cloudstack

Switch from `pre-commit` to `prek`

Aperta
#14,093 1 commento 0 reazioni 0 assegnatari Vedi su GitHub
component:build type:improvement
Lingua principale
Java
Stelle
3.1k
Fork
1.4k
Merge medio
6g 19h
PR unite (30g)
32

Descrizione

"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

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Inizia individuando la configurazione pre-commit attuale di CloudStack, i punti di ingresso dei workflow GitHub e i target del Makefile; l’issue non ne indica i percorsi. Confronta questi punti di ingresso con gli esempi collegati di PREK.md e dei workflow di Lucene.NET e Sedona, quindi verifica che i controlli esistenti vengano eseguiti correttamente con prek e che il vecchio percorso pre-commit non venga più utilizzato.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Ambito
build-system, ci-cd, tooling
Tipo di issue
Funzionalità
Difficoltà
4/5
Tempo stimato
3-5 giorni
Stato di attività
Attiva
Chiarezza
Abbastanza chiara
Idoneità per principianti
52/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.