Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Fix black's Python target configuration #16187

Merged
merged 7 commits into from
Aug 29, 2023
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions changelog.d/16187.misc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Bump black version to 23.7.0.
51 changes: 24 additions & 27 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 4 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
showcontent = true

[tool.black]
target-version = ['py37', 'py38', 'py39', 'py310']
target-version = ['py38', 'py39', 'py310', 'py311']
# black ignores everything in .gitignore by default, see
# https://black.readthedocs.io/en/stable/usage_and_configuration/file_collection_and_discovery.html#gitignore
# Use `extend-exclude` if you want to exclude something in addition to this.
Expand Down Expand Up @@ -306,9 +306,10 @@ all = [
]

[tool.poetry.dev-dependencies]
# We pin black so that our tests don't start failing on new releases.
# We pin black via the lock file so that our tests don't start failing on new
# releases. We use a >= comparison ro receive updates from dependabot.
clokep marked this conversation as resolved.
Show resolved Hide resolved
isort = ">=5.10.1"
black = ">=22.3.0"
black = ">=22.7.0"
ruff = "0.0.277"

# Typechecking
Expand Down