Skip to content

Commit

Permalink
Added isort checker (#1326)
Browse files Browse the repository at this point in the history
  • Loading branch information
eddiebergman committed Jan 25, 2022
1 parent 5f7aeaa commit 7cb249c
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/black_checker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ jobs:

- name: Checkout
uses: actions/checkout@v2
with:
submodules: recursive

- name: Setup Python 3.7
uses: actions/setup-python@v2
Expand Down
31 changes: 31 additions & 0 deletions .github/workflows/isort_checker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: black-format-check

on: [push, pull_request, workflow_dispatch]

env:
#If STRICT is set to true, it will fail on black check fail
STRICT: false

jobs:

black-format-check:
runs-on: ubuntu-latest
steps:

- name: Checkout
uses: actions/checkout@v2
with:
submodules: recursive

- name: Setup Python 3.7
uses: actions/setup-python@v2
with:
python-version: "3.7"

- name: Install black
run: |
pip install isort
- name: Run isort Check
run: |
isort --check-only autosklearn || ! $STRICT

0 comments on commit 7cb249c

Please sign in to comment.