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 22, 2024
1 parent 593de7e commit f75f4c4
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 f75f4c4

Please sign in to comment.