Skip to content

Commit 7cb249c

Browse files
committed
Added isort checker (#1326)
1 parent 5f7aeaa commit 7cb249c

File tree

2 files changed

+33
-0
lines changed

2 files changed

+33
-0
lines changed

.github/workflows/black_checker.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ jobs:
1414

1515
- name: Checkout
1616
uses: actions/checkout@v2
17+
with:
18+
submodules: recursive
1719

1820
- name: Setup Python 3.7
1921
uses: actions/setup-python@v2

.github/workflows/isort_checker.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: black-format-check
2+
3+
on: [push, pull_request, workflow_dispatch]
4+
5+
env:
6+
#If STRICT is set to true, it will fail on black check fail
7+
STRICT: false
8+
9+
jobs:
10+
11+
black-format-check:
12+
runs-on: ubuntu-latest
13+
steps:
14+
15+
- name: Checkout
16+
uses: actions/checkout@v2
17+
with:
18+
submodules: recursive
19+
20+
- name: Setup Python 3.7
21+
uses: actions/setup-python@v2
22+
with:
23+
python-version: "3.7"
24+
25+
- name: Install black
26+
run: |
27+
pip install isort
28+
29+
- name: Run isort Check
30+
run: |
31+
isort --check-only autosklearn || ! $STRICT

0 commit comments

Comments
 (0)