Skip to content

Bump ruff from 0.6.9 to 0.8.3 #109

Bump ruff from 0.6.9 to 0.8.3

Bump ruff from 0.6.9 to 0.8.3 #109

Workflow file for this run

name: "Lint"
on:
push:
branches:
- "main"
pull_request:
branches:
- "main"
jobs:
pre-commit:
name: "Pre-commit"
runs-on: "ubuntu-latest"
steps:
- name: Check out the repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/[email protected]
with:
python-version: "3.12"
cache: "pip"
- name: Upgrade pip
run: |
pip install --constraint=.github/workflows/constraints.txt pip
pip --version
- name: Install Python modules
run: |
pip install --constraint=.github/workflows/constraints.txt pre-commit black flake8 reorder-python-imports
- name: Run pre-commit on all files
run: |
pre-commit run --all-files --show-diff-on-failure --color=always
ruff:
name: "Ruff"
runs-on: "ubuntu-latest"
steps:
- name: "Checkout the repository"
uses: "actions/[email protected]"
- name: "Set up Python"
uses: actions/[email protected]
with:
python-version: "3.12"
cache: "pip"
- name: "Install requirements"
run: python3 -m pip install -r requirements.txt
- name: "Run"
run: python3 -m ruff check .