Add github worklow for darker

pull/2921/head
James Campbell 2022-04-18 17:45:45 -05:00
parent f490ee3667
commit 8973fde259
2 changed files with 17 additions and 0 deletions

16
.github/workflows/darker.yml vendored Normal file
View File

@ -0,0 +1,16 @@
name: Lint
on: [push, pull_request]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-python@v2
- uses: akaihola/darker@1.4.2
with:
options: "--check --diff --isort"
version: "1.4.2"

View File

@ -0,0 +1 @@
Add a pre-commit hook and github action for `Darker <https://github.com/akaihola/darker>`_ to ensure all future changes conform to black and isort.