Skip to content

Bump actions/checkout from 7.0.0 to 7.0.1 #31

Bump actions/checkout from 7.0.0 to 7.0.1

Bump actions/checkout from 7.0.0 to 7.0.1 #31

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@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
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@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Set up Python
uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6.3.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')