Skip to content

Commit

Permalink
CI: isort: re-add black compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
elliot-100 committed May 22, 2024
1 parent a142009 commit bcd6560
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,11 @@ jobs:
run: poetry install
- name: Lint imports with isort
# 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
# Exit with error if the code is not properly formatted; show diffs;
# `black` compatibility
run: |
source $VENV
isort . --check-only --diff
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 bcd6560

Please sign in to comment.