Skip to content

Commit

Permalink
CI: add isort config file and workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
dmgav committed Mar 16, 2024
1 parent 763563b commit 2d0b64d
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/isort.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Check Code Style - ISORT

on: [push, pull_request]

jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- name: Install Dependencies
run: |
# These packages are installed in the base environment but may be older
# versions. Explicitly upgrade them because they often create
# installation problems if out of date.
python -m pip install --upgrade pip setuptools numpy
pip install isort
- name: Run ISort
run: |
isort . -c
5 changes: 5 additions & 0 deletions .isort.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[settings]
line_length = 115
multi_line_output = 3
include_trailing_comma = True
profile = black

0 comments on commit 2d0b64d

Please sign in to comment.