File tree Expand file tree Collapse file tree 3 files changed +4
-3
lines changed Expand file tree Collapse file tree 3 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 1
1
[pytest]
2
2
norecursedirs =dist build .tox .eggs
3
- addopts =--doctest-modules --flake8 --black
3
+ addopts =--doctest-modules --flake8
4
4
doctest_optionflags =ALLOW_UNICODE ELLIPSIS
5
5
filterwarnings =
6
6
ignore:Possible nested set::pycodestyle:113
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ testing =
29
29
pytest >= 3.5, !=3.7.3
30
30
pytest-checkdocs
31
31
pytest-flake8
32
- pytest-black
32
+ pytest-black; python_version >= "3"
33
33
34
34
# local
35
35
Original file line number Diff line number Diff line change @@ -8,7 +8,8 @@ tox_pip_extensions_ext_venv_update = true
8
8
deps =
9
9
setuptools>=31.0.1
10
10
commands =
11
- pytest {posargs}
11
+ !py27: pytest --black {posargs}
12
+ py27: pytest {posargs}
12
13
usedevelop = True
13
14
extras = testing
14
15
You can’t perform that action at this time.
0 commit comments