diff --git a/pyproject.toml b/pyproject.toml index bae68252e4..38eeacaf42 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -39,7 +39,7 @@ test = [ # local "virtualenv>=13.0.0", - "wheel>=0.44.0", # Consistent requirement normalisation in METADATA (see #4547) + "wheel>=0.44.0", # Consistent requirement normalisation in METADATA (see #4547) "pip>=19.1", # For proper file:// URLs support. "packaging>=23.2", "jaraco.envs>=2.2", @@ -54,27 +54,12 @@ test = [ # for tools/finalize.py 'jaraco.develop >= 7.21; python_version >= "3.9" and sys_platform != "cygwin"', "pytest-home >= 0.5", - # pin mypy version so a new version doesn't suddenly cause the CI to fail, - # until types-setuptools is removed from typeshed. - # For help with static-typing issues, or mypy update, ping @Avasam - "mypy==1.11.*", - # No Python 3.11 dependencies require tomli, but needed for type-checking since we import it directly - "tomli", - # No Python 3.12 dependencies require importlib_metadata, but needed for type-checking since we import it directly - "importlib_metadata", "pytest-subprocess", - # require newer pytest-ruff than upstream for pypa/setuptools#4368 - # also exclude cygwin for pypa/setuptools#3921 - 'pytest-ruff >= 0.3.2; sys_platform != "cygwin"', - # workaround for pypa/setuptools#4333 "pyproject-hooks!=1.1", "jaraco.test", - - # workaround for businho/pytest-ruff#28 - 'pytest-ruff < 0.4; platform_system == "Windows"', ] doc = [ @@ -118,8 +103,17 @@ core = [ ] check = [ + # upstream "pytest-checkdocs >= 2.4", "pytest-ruff >= 0.2.1; sys_platform != 'cygwin'", + + # local + + # require newer pytest-ruff than upstream for pypa/setuptools#4368 + # also exclude cygwin for pypa/setuptools#3921 + 'pytest-ruff >= 0.3.2; sys_platform != "cygwin"', + # workaround for businho/pytest-ruff#28 + 'pytest-ruff < 0.4; platform_system == "Windows"', ] cover = [ @@ -135,6 +129,17 @@ type = [ "pytest-mypy", # local + + # pin mypy version so a new version doesn't suddenly cause the CI to fail, + # until types-setuptools is removed from typeshed. + # For help with static-typing issues, or mypy update, ping @Avasam + "mypy==1.11.*", + # Conditionally imported vendored dependencies. + # They're not needed at runtime for Python version outside the [core] extra, + # but they're still needed for type-checking since we import them directly + "tomli", + "importlib_resources", + "importlib_metadata", ]