Skip to content

Commit

Permalink
Add isort to formatting action
Browse files Browse the repository at this point in the history
Signed-off-by: Jordà Polo <[email protected]>
  • Loading branch information
jordap committed Jan 9, 2025
1 parent 8130091 commit 100dfe1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/formatting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,13 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install black
python -m pip install black isort
if [ -f requirements.txt ]; then python -m pip install -r requirements.txt; fi
- name: black format
run: |
black --diff --check .
- name: Run isort formatter
uses: isort/isort-action@master

python-bytecode:
runs-on: ubuntu-20.04
Expand All @@ -48,4 +50,4 @@ jobs:
echo -e "${FILES}"
echo -e "##############"
exit 1
fi
fi

0 comments on commit 100dfe1

Please sign in to comment.