Browse Source

Add black to ci.yml

Kentaro Wada 4 năm trước cách đây
mục cha
commit
816038f206
1 tập tin đã thay đổi với 6 bổ sung6 xóa
  1. 6 6
      .github/workflows/ci.yml

+ 6 - 6
.github/workflows/ci.yml

@@ -88,12 +88,12 @@ jobs:
       run: |
         flake8 .
 
-    # - name: Black
-    #   shell: bash -l {0}
-    #   if: matrix.os != 'windows-latest' && matrix.python-version != '2.7'
-    #   run: |
-    #     pip install black
-    #     black --check .
+    - name: Black
+      shell: bash -l {0}
+      if: matrix.os != 'windows-latest' && matrix.python-version != '2.7'
+      run: |
+        pip install black
+        black --line-length 79 --check labelme
 
     - name: Test with pytest
       shell: bash -l {0}