juliaturc commited on
Commit
c48bded
·
1 Parent(s): 691374c

Prevent disagreements between isort and black

Browse files
Files changed (1) hide show
  1. .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()