chore(deps): update registry.fedoraproject.org/fedora:45 docker digest to 8e17642 #441
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
| --- | |
| name: Lint Python issues | |
| on: | |
| push: | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| python-lint-job: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Repository checkout | |
| uses: actions/checkout@v6 | |
| - name: Set up Python | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: '3.12' | |
| - name: Cache pip packages | |
| uses: actions/cache@v5 | |
| with: | |
| path: ~/.cache/pip | |
| key: ${{ runner.os }}-pip-${{ hashFiles('**/pyproject.toml') }} | |
| restore-keys: | | |
| ${{ runner.os }}-pip- | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install -e ".[dev]" | |
| - name: Check code formatting with Black | |
| id: black | |
| run: black --check pulp_tool tests | |
| continue-on-error: true | |
| - name: Lint with Flake8 | |
| id: flake8 | |
| run: flake8 pulp_tool tests --max-line-length=120 | |
| continue-on-error: true | |
| - name: Lint with Pylint | |
| id: pylint | |
| run: pylint pulp_tool tests --errors-only | |
| continue-on-error: true | |
| - name: Type check with Mypy | |
| id: mypy | |
| run: mypy pulp_tool tests | |
| continue-on-error: true | |
| - name: Check for linting failures | |
| if: steps.black.outcome == 'failure' || steps.flake8.outcome == 'failure' || steps.pylint.outcome == 'failure' || steps.mypy.outcome == 'failure' | |
| run: | | |
| echo "One or more linting checks failed:" | |
| echo " Black: ${{ steps.black.outcome }}" | |
| echo " Flake8: ${{ steps.flake8.outcome }}" | |
| echo " Pylint: ${{ steps.pylint.outcome }}" | |
| echo " Mypy: ${{ steps.mypy.outcome }}" | |
| exit 1 |