Project-agnostic bash script enforcing Python code quality gates using pyrefly, radon, hypothesis, pytest, and markdownlint. Three execution modes provide flexibility for different workflows: unit-tests for fast feedback, all-tests for comprehensive pre-merge validation, no-tests for static analysis only. Coverage runs are excluded by default; run coverage only when the user explicitly requests it.
Before committing Python code to enforce consistent quality checks across projects without directory structure assumptions.
| unit-tests | pyrefly, radon, hypothesis checks, pytest (unit/), markdownlint | Fast feedback during development | | all-tests | pyrefly, radon, hypothesis checks, pytest (unit/ + integration/), markdownlint | Pre-merge/deploy comprehensive check | | no-tests | pyrefly, radon, hypothesis checks, markdownlint | Static analysis only (time critical) |
برنامج نصي لبوابات جودة كود بايثون لإجراء الفحص، وفحص النوع، وتحليل التعقيد، والاختبار قبل الالتزامات. يُستخدم عند فرض جودة تعليمات برمجية متسقة عبر مشاريع Python باستخدام الأوضاع السريعة (اختبارات الوحدة) أو الشاملة (جميع الاختبارات). المصدر: ederheisler/agent-skills.