Skip to content

Commit

Permalink
ci: isort: use CLI interface instead of official isort/isort-action
Browse files Browse the repository at this point in the history
… which appears to have bugs and config documentation gaps
  • Loading branch information
elliot-100 committed May 23, 2024
1 parent ab0694b commit 57186fd
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,12 @@ jobs:
- name: Install project
run: poetry install
- name: Lint imports with isort
# By default: exit with error if imports are not properly sorted
uses: isort/isort-action@master
with:
configuration: profile = black
# Use command line due to bugs/doc gaps with official `isort/isort-action`.
# Exit with error if the code is not properly formatted; show diffs;
# `black` compatibility
run: |
source $VENV
isort . --check-only --diff --profile black
- name: Lint with black
# by default: exit with error if the code is not properly formatted; show diffs
uses: psf/black@stable
Expand Down

0 comments on commit 57186fd

Please sign in to comment.