Upgrade Tox and fix flake issues.
continuous-integration/drone/push Build is failing
Details
continuous-integration/drone/push Build is failing
Details
This commit is contained in:
parent
8460879f73
commit
aff6324514
|
@ -7,8 +7,8 @@ import docx
|
|||
|
||||
|
||||
def expand_chapter_range(chapter_request):
|
||||
if not '-' in chapter_request:
|
||||
return (int(chapter_request),)
|
||||
if '-' not in chapter_request:
|
||||
return (int(chapter_request),)
|
||||
|
||||
chapter_range = chapter_request.split('-')
|
||||
|
||||
|
|
|
@ -8,8 +8,7 @@ set -e
|
|||
|
||||
apk add --no-cache python3 py3-pip
|
||||
# If certain dependencies of black are available in this version of Alpine, install them.
|
||||
apk add --no-cache py3-typed-ast py3-regex || true
|
||||
python3 -m pip install --upgrade pip==22.2.2 setuptools==65.3.0
|
||||
pip3 install --ignore-installed tox==3.25.1
|
||||
apk add --no-cache py3-typed-ast py3-regex py3-pip || true
|
||||
pip3 install --ignore-installed tox==4.11.13
|
||||
export COVERAGE_FILE=/tmp/.coverage
|
||||
tox --workdir /tmp/.tox --sitepackages
|
||||
|
|
9
tox.ini
9
tox.ini
|
@ -1,13 +1,12 @@
|
|||
[tox]
|
||||
envlist = py37,py38,py39,py310
|
||||
envlist = py38,py39,py310,py311
|
||||
skip_missing_interpreters = True
|
||||
skipsdist = True
|
||||
minversion = 3.14.1
|
||||
package = editable
|
||||
min_version = 4.0
|
||||
|
||||
[testenv]
|
||||
usedevelop = True
|
||||
deps = -rtest_requirements.txt
|
||||
passenv = COVERAGE_FILE
|
||||
pass_env = COVERAGE_FILE
|
||||
commands =
|
||||
#pytest {posargs}
|
||||
py38,py39: black --check .
|
||||
|
|
Loading…
Reference in New Issue