testcontainers / testcontainers/testcontainers-python
Feature: Use pre-commit.ci
まだ誰も着手していません。
- 主要言語
- Python
- スター
- 2.3k
- フォーク
- 386
- 平均マージ
- 4時間 40分
- マージ済み PR(30日)
- 1
説明
Currently we use the following in our ci workflow
- name: Execute pre-commit handler
continue-on-error: true
run: |
poetry run pre-commit run check-toml
poetry run pre-commit run trailing-whitespace
poetry run pre-commit run end-of-file-fixer
poetry run pre-commit run ruff
poetry run pre-commit run ruff-format
- name: Execute mypy
run: |
make mypy-core-report
make mypy-core
So we run all hooks but the mypy hool and then run mypy.
I suggest we use https://pre-commit.ci/
This service run the pre-commit hooks and offers a skip option for ci, so we have one file where to define which hooks should run in ci and locally.
It also has speed advantages and can commit changes of ruff back to MR.
It also updates the pre-commit file automatically, creating a PR.
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
まず現在の CI ワークフローとリポジトリの pre-commit 設定を確認し、一覧にあるフックと分離された mypy コマンドに重点を置きます。pre-commit.ci の CI スキップオプションが既存のワークフローにどのように適合するかを確認します。フックがローカルと CI で一貫して使用できるように定義され、mypy も引き続き正常に実行されれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- github-actions, python
- 領域
- ci-cd
- issue の種類
- 機能追加
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 静か
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 55/100