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 Aug 18, 2022
1 parent cf184e9 commit 5ad0f0e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 19 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
24 changes: 5 additions & 19 deletions .github/workflows/isort_checker.yml
Original file line number Diff line number Diff line change
@@ -1,28 +1,14 @@
name: isort-check
name: black-format-check

on:
# Manually triggerable in github
workflow_dispatch:

# When a push occurs on either of these branches
push:
branches:
- master
- development

# When a push occurs on a PR that targets these branches
pull_request:
branches:
- master
- development
on: [push, pull_request, workflow_dispatch]

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

jobs:

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

Expand All @@ -36,7 +22,7 @@ jobs:
with:
python-version: "3.7"

- name: Install isort
- name: Install black
run: |
pip install isort
Expand Down

0 comments on commit 5ad0f0e

Please sign in to comment.