Skip to content

Bump astral-sh/ruff-action from 3.6.1 to 4.0.0 #14

Bump astral-sh/ruff-action from 3.6.1 to 4.0.0

Bump astral-sh/ruff-action from 3.6.1 to 4.0.0 #14

Workflow file for this run

name: Check style
on: [push, pull_request]
permissions:
contents: read
jobs:
ruff:
name: Ruff
runs-on: ubuntu-latest
env:
FORCE_COLOR: '1'
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- name: Install Ruff
id: install-ruff
uses: astral-sh/ruff-action@0ce1b0bf8b818ef400413f810f8a11cdbda0034b # v4.0.0
with:
version: '0.15.x'
args: '--version'
- name: Run Ruff's linter - statistics
run: |
unset RUFF_OUTPUT_FORMAT
ruff check --statistics $(git ls-files '*.py')
if: ${{ !cancelled() && steps.install-ruff.outcome == 'success' }}
- name: Run Ruff's linter - code annotations
run: ruff check $(git ls-files '*.py')
if: ${{ !cancelled() && steps.install-ruff.outcome == 'success' }}
- name: Run Ruff's formatter
run: |
unset RUFF_OUTPUT_FORMAT
ruff format --check --diff $(git ls-files '*.py')
if: ${{ !cancelled() && steps.install-ruff.outcome == 'success' }}
pylint:
name: Pylint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- name: Set up Python
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
with:
python-version: '3.14'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pylint setuptools
- name: Run Pylint
run: pylint -f github $(git ls-files '*.py')