Skip to content

Commit

Permalink
Use enabled plugin configuration to enable mypy and black when the pl…
Browse files Browse the repository at this point in the history
…ugin is present. Ref jaraco/skeleton#22.
  • Loading branch information
jaraco committed Sep 12, 2020
1 parent 84ad81e commit 1f4df18
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ skip-string-normalization = true
[tool.setuptools_scm]

# jaraco/skeleton#22
[tool.jaraco.pytest.opts.--black]
action = "store_true"
[tool.jaraco.pytest.plugins.black]
addopts = "--black"

# jaraco/skeleton#22
[tool.jaraco.pytest.opts.--mypy]
action = "store_true"
[tool.jaraco.pytest.plugins.mypy]
addopts = "--mypy"
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 --cov --mypy
addopts=--doctest-modules --flake8 --cov
doctest_optionflags=ALLOW_UNICODE ELLIPSIS
# workaround for warning pytest-dev/pytest#6178
junit_family=xunit2
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ testing =
pytest-cov
pytest-mypy; python_implementation != "PyPy"
# jaraco/skeleton#22
jaraco.test >= 3
jaraco.test >= 3.1.1

# local

Expand Down

0 comments on commit 1f4df18

Please sign in to comment.