chore(deps-dev): bump ruff from 0.15.18 to 0.15.20 #68
Workflow file for this run
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
| # Structurally synced with script.easymovie/.github/workflows/validate.yml. Keep parallel. | |
| name: Validate | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| permissions: | |
| contents: read | |
| jobs: | |
| validate: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 | |
| - name: Set up Python | |
| uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0 | |
| with: | |
| python-version: "3.12" | |
| - name: Install dependencies | |
| run: | | |
| pip install -r requirements-dev.txt | |
| - name: Syntax check | |
| run: | | |
| find . -name "*.py" -not -path "*/__pycache__/*" -exec python3 -m py_compile {} \; | |
| - name: Ruff | |
| run: ruff check | |
| - name: Pyflakes | |
| run: | | |
| pyflakes $(find . -name "*.py" -not -path "*/__pycache__/*") | |
| - name: Clean __pycache__ | |
| run: find . -type d -name __pycache__ -exec rm -rf {} + 2>/dev/null || true | |
| - name: Pyright | |
| run: pyright | |
| - name: Vulture | |
| run: vulture resources/lib --min-confidence 80 | |
| - name: Kodi addon checker | |
| run: kodi-addon-checker --branch omega . | |
| - name: Tests | |
| run: python3 -m pytest tests/ -v --cov=resources/lib --cov-report=term |