Skip to content

Commit 5ad0f0e

Browse files
committed
Added isort checker (#1326)
1 parent cf184e9 commit 5ad0f0e

File tree

2 files changed

+7
-19
lines changed

2 files changed

+7
-19
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: 5 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,14 @@
1-
name: isort-check
1+
name: black-format-check
22

3-
on:
4-
# Manually triggerable in github
5-
workflow_dispatch:
6-
7-
# When a push occurs on either of these branches
8-
push:
9-
branches:
10-
- master
11-
- development
12-
13-
# When a push occurs on a PR that targets these branches
14-
pull_request:
15-
branches:
16-
- master
17-
- development
3+
on: [push, pull_request, workflow_dispatch]
184

195
env:
20-
#If STRICT is set to true, it will fail on isort check fail
6+
#If STRICT is set to true, it will fail on black check fail
217
STRICT: false
228

239
jobs:
2410

25-
isort-format-check:
11+
black-format-check:
2612
runs-on: ubuntu-latest
2713
steps:
2814

@@ -36,7 +22,7 @@ jobs:
3622
with:
3723
python-version: "3.7"
3824

39-
- name: Install isort
25+
- name: Install black
4026
run: |
4127
pip install isort
4228

0 commit comments

Comments
 (0)