Skip to content

feat: add incremental linting and formatting #29

feat: add incremental linting and formatting

feat: add incremental linting and formatting #29

Workflow file for this run

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