Skip to content

Format and lint code via ruff #7

Format and lint code via ruff

Format and lint code via ruff #7

Workflow file for this run

name: Code quality
on:
push:
pull_request:
jobs:
run:
runs-on: ubuntu-latest
steps:
- name: Acquire sources
uses: actions/[email protected]
- name: Setup Python
uses: actions/[email protected]
with:
python-version: "3.12"
architecture: x64
- name: Apply caching of dependencies
uses: actions/[email protected]
with:
path: ~/.cache/pip
key: pip-${{ hashFiles('**/requirements-*.txt') }}
- name: Install dependencies
run: |
pip install -U pip setuptools wheel
pip install -r requirements.txt -r dev-requirements.txt
- name: Run ruff
run: |
ruff format --diff .
ruff check --diff .