diff --git a/.coveragerc b/.coveragerc index 5b7fdefd2a..c8d1cbbd6e 100644 --- a/.coveragerc +++ b/.coveragerc @@ -17,6 +17,8 @@ disable_warnings = [report] show_missing = True exclude_also = - # jaraco/skeleton#97 - @overload + # Exclude common false positives per + # https://coverage.readthedocs.io/en/latest/excluding.html#advanced-exclusion + # Ref jaraco/skeleton#97 and jaraco/skeleton#135 + class .*\bProtocol\): if TYPE_CHECKING: diff --git a/pyproject.toml b/pyproject.toml index 390da0c634..a9fc6d8f29 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -36,11 +36,6 @@ Changelog = "https://setuptools.pypa.io/en/stable/history.html" test = [ # upstream "pytest >= 6, != 8.1.*", - "pytest-checkdocs >= 2.4", - "pytest-cov", - "pytest-mypy", - "pytest-enabler >= 2.2", - "pytest-ruff >= 0.2.1; sys_platform != 'cygwin'", # local "virtualenv>=13.0.0", @@ -81,6 +76,7 @@ test = [ # workaround for businho/pytest-ruff#28 'pytest-ruff < 0.4; platform_system == "Windows"', ] + doc = [ # upstream "sphinx >= 3.5", @@ -121,6 +117,24 @@ core = [ "platformdirs >= 2.6.2", ] +check = [ + "pytest-checkdocs >= 2.4", + "pytest-ruff >= 0.2.1; sys_platform != 'cygwin'", +] + +cover = [ + "pytest-cov", +] + +enabler = [ + "pytest-enabler >= 2.2", +] + +type = [ + "pytest-mypy", +] + + [project.entry-points."distutils.commands"] alias = "setuptools.command.alias:alias" bdist_egg = "setuptools.command.bdist_egg:bdist_egg" diff --git a/tox.ini b/tox.ini index 6fc71eb16a..cbade4ff46 100644 --- a/tox.ini +++ b/tox.ini @@ -10,6 +10,10 @@ commands = usedevelop = True extras = test + check + cover + enabler + type core pass_env = SETUPTOOLS_USE_DISTUTILS