ci: replace line budgets with structural complexity gates

This commit is contained in:
jxxghp
2026-09-30 07:33:14 +08:00
parent 4a2ef75706
commit 7e43ea9676
13 changed files with 738 additions and 376 deletions

View File

@@ -109,10 +109,19 @@ jobs:
- name: Check governed Python types
run: uv run --locked --no-sync mypy --config-file mypy.ini
- name: Check complexity ratchet
run: |
- name: Check structural complexity ratchet
run: >-
uv run --locked --no-sync python scripts/architecture/complexity.py
uv run --locked --no-sync python scripts/architecture/complexity.py --v2
--report complexity-report.json
- name: Upload complexity and source size report
if: always()
uses: actions/upload-artifact@v7
with:
name: complexity-report
path: complexity-report.json
if-no-files-found: warn
retention-days: 7
- name: Check native concurrency ownership
run: uv run --locked --no-sync python scripts/architecture/concurrency.py