Sfoglia il codice sorgente

Can't use black to support Python2.7 + virtualenv

https://github.com/wkentaro/labelme/issues/687
Kentaro Wada 4 anni fa
parent
commit
ed2c4fdcc6
3 ha cambiato i file con 6 aggiunte e 22 eliminazioni
  1. 6 6
      .github/workflows/ci.yml
  2. 0 10
      pyproject.toml
  3. 0 6
      setup.py

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

@@ -91,12 +91,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 --check .
 
     - name: Test with pytest
       shell: bash -l {0}

+ 0 - 10
pyproject.toml

@@ -1,10 +0,0 @@
-[tool.black]
-line-length = 79
-exclude = '''
-(
-    ^/\..*
-  | ^/docs/
-  | ^/build/
-  | ^/github2pypi/
-)
-'''

+ 0 - 6
setup.py

@@ -5,16 +5,10 @@ import re
 from setuptools import find_packages
 from setuptools import setup
 import shlex
-import site
 import subprocess
 import sys
 
 
-# XXX: with pyproject.toml and without --no-use-pep517,
-# sitepackages are not inserted to sys.path by default.
-sys.path.extend(site.getsitepackages())
-
-
 def get_version():
     filename = "labelme/__init__.py"
     with open(filename) as f: