Made some slight adaptions
This commit is contained in:
Dave Halter
2020-01-01 03:13:47 +01:00
3 changed files with 10 additions and 1 deletions

View File

@@ -13,3 +13,4 @@ ignore =
E721, E721,
# Line break before binary operator # Line break before binary operator
W503, W503,
exclude = jedi/third_party/* .tox/*

View File

@@ -44,6 +44,9 @@ setup(name='jedi',
# coloroma for colored debug output # coloroma for colored debug output
'colorama==0.4.1', # Pinned so it works for Python 3.4 'colorama==0.4.1', # Pinned so it works for Python 3.4
], ],
'qa': [
'flake8==3.7.9',
],
}, },
package_data={'jedi': ['*.pyi', 'third_party/typeshed/LICENSE', package_data={'jedi': ['*.pyi', 'third_party/typeshed/LICENSE',
'third_party/typeshed/README']}, 'third_party/typeshed/README']},

View File

@@ -1,5 +1,5 @@
[tox] [tox]
envlist = py27, py35, py36, py37 envlist = py27, py35, py36, py37, qa
[testenv] [testenv]
extras = testing extras = testing
deps = deps =
@@ -37,3 +37,8 @@ commands =
commands = commands =
{envpython} -c "import os; a='{envtmpdir}'; os.path.exists(a) or os.makedirs(a)" {envpython} -c "import os; a='{envtmpdir}'; os.path.exists(a) or os.makedirs(a)"
{envpython} sith.py --record {envtmpdir}/record.json random {posargs:jedi} {envpython} sith.py --record {envtmpdir}/record.json random {posargs:jedi}
[testenv:qa]
# Ignore F401, which are unused imports. flake8 is a primitive tool and is sometimes wrong.
commands = flake8 --extend-ignore F401 {posargs:jedi}
deps =
extras = qa