@@ -607,6 +607,48 @@ jobs:
607607 # ContextPreloader Jobs
608608 # =============================================================================
609609
610+ lint-contextpreloader :
611+ runs-on : ubuntu-latest
612+ steps :
613+ - uses : actions/checkout@v7
614+
615+ - name : Set up Python
616+ uses : actions/setup-python@v7
617+ with :
618+ python-version : " 3.10"
619+
620+ - name : Install ruff
621+ run : pip install ruff==0.16.0
622+
623+ # ルールの正典は ContextPreloader/pyproject.toml の [tool.ruff]。ここでは呼ぶだけ。
624+ - name : Run ruff linter
625+ working-directory : ContextPreloader
626+ run : ruff check .
627+
628+ # --check は書き換えず差分の有無だけを見る(CI が勝手にコードを直して
629+ # green にする経路は作らない)。
630+ - name : Run ruff formatter check
631+ working-directory : ContextPreloader
632+ run : ruff format --check .
633+
634+ type-check-contextpreloader :
635+ runs-on : ubuntu-latest
636+ steps :
637+ - uses : actions/checkout@v7
638+
639+ - name : Set up Python
640+ uses : actions/setup-python@v7
641+ with :
642+ python-version : " 3.10"
643+
644+ - name : Install mypy
645+ run : pip install mypy==2.3.0
646+
647+ # strict は ContextPreloader/pyproject.toml の [tool.mypy] が SSoT。
648+ - name : Run mypy
649+ working-directory : ContextPreloader
650+ run : mypy scripts hooks
651+
610652 test-contextpreloader :
611653 runs-on : ubuntu-latest
612654 strategy :
@@ -621,7 +663,8 @@ jobs:
621663 with :
622664 python-version : ${{ matrix.python-version }}
623665
624- # pyproject を持たない stdlib-only プラグイン(editable install する対象が無い)ため、
666+ # pyproject.toml は在るが [project] / [build-system] を持たない(ruff / mypy /
667+ # pytest が設定を読む場所としてのみ置いてある)ので editable install はできない。
625668 # 他プラグインの `pip install -e X[dev]` ではなく pytest 単体を入れる。
626669 - name : Install pytest
627670 run : |
@@ -638,6 +681,48 @@ jobs:
638681 # ConsiderateCoder Jobs
639682 # =============================================================================
640683
684+ lint-consideratecoder :
685+ runs-on : ubuntu-latest
686+ steps :
687+ - uses : actions/checkout@v7
688+
689+ - name : Set up Python
690+ uses : actions/setup-python@v7
691+ with :
692+ python-version : " 3.10"
693+
694+ - name : Install ruff
695+ run : pip install ruff==0.16.0
696+
697+ # ルールの正典は ConsiderateCoder/pyproject.toml の [tool.ruff]。ここでは呼ぶだけ。
698+ - name : Run ruff linter
699+ working-directory : ConsiderateCoder
700+ run : ruff check .
701+
702+ # --check は書き換えず差分の有無だけを見る(CI が勝手にコードを直して
703+ # green にする経路は作らない)。
704+ - name : Run ruff formatter check
705+ working-directory : ConsiderateCoder
706+ run : ruff format --check .
707+
708+ type-check-consideratecoder :
709+ runs-on : ubuntu-latest
710+ steps :
711+ - uses : actions/checkout@v7
712+
713+ - name : Set up Python
714+ uses : actions/setup-python@v7
715+ with :
716+ python-version : " 3.10"
717+
718+ - name : Install mypy
719+ run : pip install mypy==2.3.0
720+
721+ # strict は ConsiderateCoder/pyproject.toml の [tool.mypy] が SSoT。
722+ - name : Run mypy
723+ working-directory : ConsiderateCoder
724+ run : mypy tests
725+
641726 test-consideratecoder :
642727 runs-on : ubuntu-latest
643728 strategy :
@@ -652,7 +737,8 @@ jobs:
652737 with :
653738 python-version : ${{ matrix.python-version }}
654739
655- # 規範・テンプレート群を検査する stdlib-only スイート(pyproject 無し)。
740+ # 規範・テンプレート群を検査する stdlib-only スイート。pyproject.toml は
741+ # 設定専用([project] 無し)なので editable install はできない。
656742 - name : Install pytest
657743 run : |
658744 python -m pip install --upgrade pip
0 commit comments