Skip to content

ci(pre-commit): pre-commit autoupdate (#8) #22

ci(pre-commit): pre-commit autoupdate (#8)

ci(pre-commit): pre-commit autoupdate (#8) #22

Workflow file for this run

name: ruff
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
ruff:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10"]
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install ruff==0.5.1
- name: Analysing the code with ruff
run: |
ruff check .
- name: Format the code with ruff
run: |
ruff format .