Skip to content

Commit c0b1582

Browse files
phlogistonjohnmergify[bot]
authored andcommitted
tox.ini: update version of black formatter tool
Allow tox to use a version of the black tool from 2024. Having added doc strings to protocols the black tool, using the 2024 style, will no longer rewrite long-ish protocol method definitions that will span multiple lines either way from: def foo(a: str, b: str, c: SomethingCompletelyDifferent) -> int: ... to def foo( a: str, b: str, c: SomethingCompletelyDifferent ) -> int: ... Just to force the ellipsis to be on the "same line" as the definition. This is change I find a bit unnecessary and a tad bit ugly. I did report this to the black team but they chose to make the change anyway. So they've unintentionally caused me to write more doc strings. Which is a good thing I guess. :-) Signed-off-by: John Mulligan <[email protected]>
1 parent dda95bb commit c0b1582

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tox.ini

+3-3
Original file line numberDiff line numberDiff line change
@@ -54,23 +54,23 @@ allowlist_externals =
5454
description = Check the formatting for the source files
5555
deps =
5656
flake8
57-
black>=23, <24
57+
black>=24, <25
5858
commands =
5959
flake8 sambacc tests
6060
black --check -v .
6161

6262
[testenv:schemacheck]
6363
description = Check the JSON Schema files are valid
6464
deps =
65-
black>=23, <24
65+
black>=24, <25
6666
PyYAML
6767
commands =
6868
python -m sambacc.schema.tool
6969

7070
[testenv:schemaupdate]
7171
description = Regenerate source files from JSON Schema file(s)
7272
deps =
73-
black>=23, <24
73+
black>=24, <25
7474
PyYAML
7575
commands =
7676
python -m sambacc.schema.tool --update

0 commit comments

Comments
 (0)