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

Commit 67a4bf4

Browse files
clokephughns
authored andcommitted
Update black & fix the targeted Python versions. (#16187)
Black should target Python 3.8 to 3.11.
1 parent 37c9850 commit 67a4bf4

File tree

3 files changed

+31
-30
lines changed

3 files changed

+31
-30
lines changed

changelog.d/16187.misc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Bump black version to 23.7.0.

poetry.lock

Lines changed: 24 additions & 27 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
showcontent = true
3636

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

308308
[tool.poetry.dev-dependencies]
309-
# We pin black so that our tests don't start failing on new releases.
309+
# We pin development dependencies in poetry.lock so that our tests don't start
310+
# failing on new releases. Keeping lower bounds loose here means that dependabot
311+
# can bump versions without having to update the content-hash in the lockfile.
312+
# This helps prevents merge conflicts when running a batch of dependabot updates.
310313
isort = ">=5.10.1"
311-
black = ">=22.3.0"
314+
black = ">=22.7.0"
312315
ruff = "0.0.277"
313316

314317
# Typechecking

0 commit comments

Comments
 (0)