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

Commit

Permalink
Update black & fix the targeted Python versions. (#16187)
Browse files Browse the repository at this point in the history
Black should target Python 3.8 to 3.11.
  • Loading branch information
clokep authored Aug 29, 2023
1 parent 692ee2a commit 2d72367
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 30 deletions.
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.

9 changes: 6 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,12 @@ all = [
]

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

# Typechecking
Expand Down

0 comments on commit 2d72367

Please sign in to comment.