Skip to content

feat: add incremental linting and formatting #8

feat: add incremental linting and formatting

feat: add incremental linting and formatting #8

Workflow file for this run

name: Lint
on:
pull_request:
branches:
- dev
jobs:
darker:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-python@v4
- uses: akaihola/[email protected]
with:
options: "--check --diff --isort --color"
version: "~=1.7.2"
lint-diffs:
runs-on: ubuntu-latest
steps:
- name: Commit Range
id: commit-range
uses: akaihola/darker/.github/actions/[email protected]
- uses: actions/checkout@v3
- 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 --no-format --revision=${{ steps.commit-range.outputs.commit-range }}