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