浏览代码

Add black to ci.yml

Kentaro Wada 4 年之前
父节点
当前提交
816038f206
共有 1 个文件被更改,包括 6 次插入6 次删除
  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}