Skip to content

Commit 7c57b0f

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 7c57b0f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 1 deletion
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: |
@@ -92,3 +92,4 @@ jobs:
9292
DB_HOST: 'localhost'
9393
DB_PORT: '5432'
9494
ALLOWED_HOSTS: 'localhost,127.0.0.1'
95+
https://github.com/EscuelaIt/Curso-de-Django-Rest-Framework/invitations

0 commit comments

Comments
 (0)