Spaces:
Running
Running
Prevent disagreements between isort and black
Browse files- .github/workflows/ci.yml +2 -2
.github/workflows/ci.yml
CHANGED
|
@@ -28,7 +28,7 @@ jobs:
|
|
| 28 |
|
| 29 |
- name: Run isort and check for unformatted files
|
| 30 |
run: |
|
| 31 |
-
isort --check-only .
|
| 32 |
|
| 33 |
- name: Run black and check for unformatted files
|
| 34 |
run: |
|
|
@@ -36,6 +36,6 @@ jobs:
|
|
| 36 |
|
| 37 |
- name: Fail if formatting is incorrect
|
| 38 |
run: |
|
| 39 |
-
echo "Code is not formatted correctly. Please run 'isort .' and 'black --line-length=120 .' locally to fix."
|
| 40 |
exit 1
|
| 41 |
if: failure()
|
|
|
|
| 28 |
|
| 29 |
- name: Run isort and check for unformatted files
|
| 30 |
run: |
|
| 31 |
+
isort --check-only --profile=black .
|
| 32 |
|
| 33 |
- name: Run black and check for unformatted files
|
| 34 |
run: |
|
|
|
|
| 36 |
|
| 37 |
- name: Fail if formatting is incorrect
|
| 38 |
run: |
|
| 39 |
+
echo "Code is not formatted correctly. Please run 'isort --profile=black .' and 'black --line-length=120 .' locally to fix."
|
| 40 |
exit 1
|
| 41 |
if: failure()
|