Repository navigation
Enhance flake8 checks in CI workflow #86
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Code Quality Assurance | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| branches: [ main ] | |
| jobs: | |
| style-compliance: | |
| name: Code Hygiene Enforcement | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: ⬇️ Checkout Repository | |
| uses: actions/checkout@v4 | |
| - name: 🐍 Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.11' | |
| cache: 'pip' | |
| - name: 📦 Provision Linting Binaries | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install flake8 | |
| # FIXED: Added F821 and W292 to ensure type hints or missing file newlines don't break the build | |
| - name: 🚀 Verify PEP 8 Alignment | |
| run: flake8 . --ignore=W293,W291,F401,E302,E305,E701,E203,E501,E261,W292,F821 --exclude=venv,.git,__pycache__,build,dist |