Skip to content

Commit 9022814

Browse files
committed
Fix isort compatibility with Black in CI workflow
- Add --profile black flag to isort in build workflow - Ensures isort and Black use compatible formatting rules - Prevents CI failures due to formatting conflicts
1 parent 005476f commit 9022814

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
4545
- name: Check imports with isort
4646
run: |
47-
isort --check-only --diff .
47+
isort --check-only --diff --profile black .
4848
4949
- name: Lint with flake8
5050
run: |
@@ -91,4 +91,4 @@ jobs:
9191
DB_PASSWORD: 'test_password'
9292
DB_HOST: 'localhost'
9393
DB_PORT: '5432'
94-
ALLOWED_HOSTS: 'localhost,127.0.0.1'
94+
ALLOWED_HOSTS: 'localhost,127.0.0.1'

0 commit comments

Comments
 (0)