Skip to content

feat: add incremental linting and formatting #18

feat: add incremental linting and formatting

feat: add incremental linting and formatting #18

Workflow file for this run

name: Lint
on:
pull_request:
branches:
- dev
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Commit Range
id: commit-range
uses: akaihola/darker/.github/actions/[email protected]
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-python@v4
with:
python-version: '3.8'
cache: 'pip'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.lint.txt
- name: Lint
run: |
inv lint --diff --revision=${{ steps.commit-range.outputs.commit-range }}