Refactor type annotations and improve readability in orka_cli.py, eve… #10
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: Lint | |
| on: | |
| push: | |
| branches: [ master ] | |
| pull_request: | |
| branches: [ master ] | |
| permissions: | |
| contents: read | |
| jobs: | |
| lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Set up Python 3.11 | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: '3.11' | |
| - name: Install linting dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install flake8 mypy>=1.17.0 types-redis types-PyYAML types-requests types-psutil | |
| pip install -e . | |
| - name: Run flake8 (critical errors) | |
| run: | | |
| flake8 orka --count --select=E9,F63,F7,F82 --show-source --statistics | |
| - name: Run mypy | |
| run: | | |
| mypy orka | |