Skip to content
This repository has been archived by the owner on Dec 4, 2023. It is now read-only.

Commit

Permalink
Only install and invoke pytest-black on Python 3
Browse files Browse the repository at this point in the history
  • Loading branch information
jaraco committed May 15, 2019
1 parent 2fe1c20 commit 4399038
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pytest.ini
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[pytest]
norecursedirs=dist build .tox .eggs
addopts=--doctest-modules --flake8 --black
addopts=--doctest-modules --flake8
doctest_optionflags=ALLOW_UNICODE ELLIPSIS
filterwarnings=
ignore:Possible nested set::pycodestyle:113
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ testing =
pytest >= 3.5, !=3.7.3
pytest-checkdocs
pytest-flake8
pytest-black
pytest-black; python_version >= "3"

# local

Expand Down
3 changes: 2 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ tox_pip_extensions_ext_venv_update = true
deps =
setuptools>=31.0.1
commands =
pytest {posargs}
!py27: pytest --black {posargs}
py27: pytest {posargs}
usedevelop = True
extras = testing

Expand Down

0 comments on commit 4399038

Please sign in to comment.