From 0c38672c74bf3fe6ad8a7b00593cffc7e87115aa Mon Sep 17 00:00:00 2001 From: Elliot <3186037+elliot-100@users.noreply.github.com> Date: Thu, 23 May 2024 11:25:21 +0100 Subject: [PATCH] Only target `spond` and `tests` dirs to attempt to match local CLI behaviour --- .github/workflows/python-package.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index 4d59654..3049efe 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -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