Skip to content

Commit

Permalink
Merge pull request #601 from Carreau/darker
Browse files Browse the repository at this point in the history
Ensure new code respect black
  • Loading branch information
Carreau committed Aug 20, 2020
2 parents 61c7c8f + de669a0 commit 0df5f58
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: New code is black complient.

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:

runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.8]

steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install 'darker>=1.1'
- name: Lint with black
run: |
darker --check -r 61c7c8f5030d116de210f67d851ec9afa9f16170 .

0 comments on commit 0df5f58

Please sign in to comment.