Skip to content

Bump pypa/gh-action-pypi-publish from 1.14.0 to 1.14.1 #34

Bump pypa/gh-action-pypi-publish from 1.14.0 to 1.14.1

Bump pypa/gh-action-pypi-publish from 1.14.0 to 1.14.1 #34

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@278981a28ce3188b1e39527901f38254bf3aac89 # v4.1.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')