mirror of
https://github.com/magnus919/agent-skills.git
synced 2026-09-17 14:36:29 +03:00
feat(ci): add mypy, radon, and deptry to CI pipeline
Add mypy strict type checking, radon cyclomatic complexity analysis, and deptry unused dependency detection. Fix type annotations in eval-coverage.py and release.py to pass strict mypy checks. Resolves 4 agent-readiness signals: type_check, strict_typing, cyclomatic_complexity, unused_dependencies_detection. Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
This commit is contained in:
co-authored by
factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
parent
476d7e11b0
commit
bfe05ef18a
@@ -30,6 +30,12 @@ jobs:
|
||||
run: python3 -m ruff check scripts/ eval_runner/
|
||||
- name: Check Python formatting (ruff)
|
||||
run: python3 -m ruff format --check scripts/ eval_runner/
|
||||
- name: Type check (mypy)
|
||||
run: python3 -m mypy scripts/ eval_runner/
|
||||
- name: Complexity check (radon)
|
||||
run: python3 -m radon cc scripts/ eval_runner/ --min B --total-average
|
||||
- name: Unused dependency check (deptry)
|
||||
run: python3 -m deptry .
|
||||
- name: Validate skill format and links
|
||||
run: ruby scripts/validate-skills.rb
|
||||
- name: Test eval manifest validation
|
||||
@@ -39,7 +45,7 @@ jobs:
|
||||
- name: Test life-coach capability validation
|
||||
run: python3 -m unittest discover -s life-coach/tests -p 'test_*.py'
|
||||
- name: Run core test suite with coverage
|
||||
run: python3 -m pytest scripts/ eval_runner/tests/ -v --durations=10 --cov=scripts --cov=eval_runner --cov-fail-under=60 --cov-report=term-missing
|
||||
run: python3 -m pytest scripts/test-eval-validation.py scripts/test-eval-coverage.py eval_runner/tests/ -v --durations=10 --cov=scripts --cov=eval_runner --cov-fail-under=60 --cov-report=term-missing
|
||||
- name: Test changed-skill quality validation
|
||||
run: ruby scripts/test-validate-skill-quality.rb
|
||||
- name: Validate changed skill quality
|
||||
|
||||
Reference in New Issue
Block a user