提交 ed2c4fdc 编写于 作者: K Kentaro Wada

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

https://github.com/wkentaro/labelme/issues/687
上级 4274ffbc
......@@ -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}
......
[tool.black]
line-length = 79
exclude = '''
(
^/\..*
| ^/docs/
| ^/build/
| ^/github2pypi/
)
'''
......@@ -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:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册