Skip to content

Commit

Permalink
Only target spond and tests dirs to attempt to match local CLI be…
Browse files Browse the repository at this point in the history
…haviour
  • Loading branch information
elliot-100 committed May 23, 2024
1 parent f75f4c4 commit 0c38672
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,14 @@ jobs:
- 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;
# `black` compatibility
# `black` compatibility.
# The diffs should be the same as fixes made by running `isort .` in the root
# project folder, which picks up config from `pyproject.toml` and checks
# formatting in these directories
run: |
source $VENV
isort . --check-only --diff --profile black
isort spond --check-only --diff --profile black
isort tests --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 0c38672

Please sign in to comment.