Skip to content

refactor all files as per ruff rules #1232

refactor all files as per ruff rules

refactor all files as per ruff rules #1232

Workflow file for this run

name: Lint
on:
push:
branches:
- master
pull_request:
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-python@v4
with:
python-version: "3.11"
cache: "pip"
- run: pip install --upgrade pre-commit
- uses: actions/cache@v3
with:
path: ~/.cache/pre-commit
key: pre-commit-3|${{ env.pythonLocation }}|${{ hashFiles('.pre-commit-config.yaml') }}
- name: Lint
run: pre-commit run --files $(git diff --name-only --diff-filter=ACMR ${{ github.event.before }} ${{ github.event.after }})