diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2020-09-12 14:18:23 -0400 |
---|---|---|
committer | Jason R. Coombs <jaraco@jaraco.com> | 2020-09-12 14:54:03 -0400 |
commit | 8117892ea5da9969f49756933bcbaa576ee7c5d7 (patch) | |
tree | aa837ff59f19a07c9f4bbcadf3b3e6ddc91c4661 | |
parent | 38207546aea22e38433a316c6ad9bf024de61ef3 (diff) | |
download | pytest-runner-8117892ea5da9969f49756933bcbaa576ee7c5d7.tar.gz |
Use enabled plugin configuration to enable mypy and black when the plugin is present. Ref jaraco/skeleton#22.
-rw-r--r-- | pyproject.toml | 8 | ||||
-rw-r--r-- | pytest.ini | 2 | ||||
-rw-r--r-- | setup.cfg | 2 |
3 files changed, 6 insertions, 6 deletions
diff --git a/pyproject.toml b/pyproject.toml index 9b02ee7..9cd13ba 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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" @@ -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 @@ -30,7 +30,7 @@ testing = pytest-cov pytest-mypy; python_implementation != "PyPy" # jaraco/skeleton#22 - jaraco.test >= 3 + jaraco.test >= 3.1.1 # local |