@@ -47,21 +47,22 @@ basepython =
4747deps =
4848 {[default]deps}
4949
50- # In Python 2, we need to pull in typing
51- {py26,py27}: typing ==3.7.4.1
50+ # In Python 2, we need to pull in typing, mock
51+ py{26,27,py2}: typing ==3.7.4.1
52+ py{26,27,py2}: mock ==3.0.5 # rq.filter: <4
5253
5354 # For pytest
54- {py26,py27,py34 }: pytest ==4.6.11
55- {py35,py36,py37,py38 }: pytest ==5.2.4
55+ py{26,27,34,py2 }: pytest ==4.6.11 # rq.filter: <5
56+ py{35,36,37,38,39,py3 }: pytest ==5.2.4
5657
5758 # For code coverage
5859 {[testenv:coverage_report]deps}
59- pytest-cov ==2.10.0
60+ py{26,27,34,py2}: pytest-cov ==2.8.1 # rq.filter: <2.9
61+ py{35,36,37,38,39,py3}: pytest-cov ==2.10.0
6062
6163 # For hypothesis. Note Python 3.4 isn't supported by hypothesis.
62- py27: hypothesis ==4.43.9
63- {py35,py36,py37,py38,py39,py2,py3}: hypothesis ==5.8.6
64- py27: mock ==4.0.2
64+ py{26,27,py2}: hypothesis ==4.43.9 # rq.filter: <4.44
65+ py{35,36,37,38,39,py3}: hypothesis ==5.8.6
6566
6667setenv =
6768 {[default]setenv}
@@ -94,7 +95,7 @@ setenv =
9495 BLACK_LINT_ARGS =--check
9596
9697commands =
97- black {env:BLACK_LINT_ARGS:} setup.py src
98+ black {env:BLACK_LINT_ARGS:} {posargs: setup.py src}
9899
99100
100101[testenv:black-reformat]
@@ -129,7 +130,7 @@ deps =
129130 git+git://github.com/PyCQA/pyflakes@ffe9386# egg=pyflakes
130131
131132commands =
132- flake8 {posargs:src/{env:PY_MODULE}}
133+ flake8 {posargs:setup.py src/{env:PY_MODULE}}
133134
134135
135136[flake8]
@@ -239,7 +240,7 @@ ignore_missing_imports = True
239240
240241description = generate coverage report
241242
242- depends = test-py{26,27,34,35,36,37,38,py ,py3}
243+ depends = test-py{26,27,34,35,36,37,38,39,py2 ,py3}
243244
244245basepython = {[default]basepython}
245246
0 commit comments