From a71faa511fb8f7084e0fd387f1b374b457ed4deb Mon Sep 17 00:00:00 2001 From: John Mulligan Date: Fri, 14 Jun 2024 09:53:52 -0400 Subject: [PATCH] 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 --- tox.ini | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tox.ini b/tox.ini index 37ece7d..4a4eb17 100644 --- a/tox.ini +++ b/tox.ini @@ -54,7 +54,7 @@ allowlist_externals = description = Check the formatting for the source files deps = flake8 - black>=23, <24 + black>=24, <25 commands = flake8 sambacc tests black --check -v . @@ -62,7 +62,7 @@ commands = [testenv:schemacheck] description = Check the JSON Schema files are valid deps = - black>=23, <24 + black>=24, <25 PyYAML commands = python -m sambacc.schema.tool @@ -70,7 +70,7 @@ commands = [testenv:schemaupdate] description = Regenerate source files from JSON Schema file(s) deps = - black>=23, <24 + black>=24, <25 PyYAML commands = python -m sambacc.schema.tool --update