Skip to content
This repository has been archived by the owner on Aug 19, 2023. It is now read-only.

Commit

Permalink
Fix Black 23.7.0 issue (#1773)
Browse files Browse the repository at this point in the history
`extend-exclude` should have been a string. We simply use the old
behavior of Black, which was to call `repr()` on the list.

This also properly pins Black's version. I didn't realize they're using
cal-ver, so `~=` doesn't work properly.
  • Loading branch information
Eric-Arellano committed Jul 11, 2023
1 parent e1127d2 commit 4378b14
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ build-backend = "setuptools.build_meta"
[tool.black]
line-length = 100
target-version = ["py37", "py38", "py39", "py310", "py311"]
extend-exclude = ["test/benchmarks/", "docs/plot_directive/"]
extend-exclude = "['test/benchmarks/', 'docs/plot_directive/']"

[tool.isort]
profile = "black"
Expand Down
2 changes: 1 addition & 1 deletion requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@ networkx>=2.3
qiskit-qasm3-import; python_version>'3.7'

# Dev tooling
black~=23.3
black==23.7.0
isort~=5.11

0 comments on commit 4378b14

Please sign in to comment.