From ada87f3ce001fe2e922fca1fccaab02e1351edcf Mon Sep 17 00:00:00 2001 From: Gert van Dijk Date: Mon, 27 Feb 2023 23:07:20 +0100 Subject: [PATCH] Remove Black-specific Python target-version configuration Since Black's 23.1.0 release it infers the target versions via the project metadata (python-requires). Verified that it detects this correctly: $ black -v src [...] target_version: ['py310', 'py311'] [...] See https://github.com/psf/black/pull/3219 --- pyproject.toml | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index f4c61d3..8b3ded3 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -35,7 +35,7 @@ dependencies = [ [project.optional-dependencies] development = [ - "black", + "black>=23.1.0", "build", "mypy", "pytest-asyncio", @@ -171,11 +171,6 @@ required-imports = [ "from __future__ import annotations", ] -[tool.black] -# This option takes *multiple* Python versions and should include all supported Python -# versions, but this may change in the future. https://github.com/psf/black/issues/751 -target-version = ["py310", "py311"] - [tool.mypy] strict = true namespace_packages = true