style: ensure trailing commas in multi-line statements

This commit is contained in:
jakob.scheid committed 2026-09-18 22:18:13 +02:00
1 parent ffcc7404de
commit 475775eb7e
30 files changed
+1778 -1774

No files matched your search

+18 -18
View File
@@ -33,8 +33,8 @@ from jcloud_docsgen.core.python import (
docstring = False,
bases = False,
decorators = False,
class_body = False
)
class_body = False,
),
),
(
[],
@@ -48,8 +48,8 @@ from jcloud_docsgen.core.python import (
docstring = False,
bases = False,
decorators = False,
class_body = False
)
class_body = False,
),
),
(
['signature'],
@@ -63,8 +63,8 @@ from jcloud_docsgen.core.python import (
docstring = False,
bases = False,
decorators = False,
class_body = False
)
class_body = False,
),
),
(
['signature'],
@@ -78,13 +78,13 @@ from jcloud_docsgen.core.python import (
docstring = False,
bases = False,
decorators = False,
class_body = False
)
class_body = False,
),
),
(
None,
[],
PythonDefinitionDocumentationIncludeSections()
PythonDefinitionDocumentationIncludeSections(),
),
(
['signature', 'exceptions', 'bases', 'class_body'],
@@ -98,8 +98,8 @@ from jcloud_docsgen.core.python import (
docstring = False,
bases = False,
decorators = False,
class_body = True
)
class_body = True,
),
),
(
None,
@@ -113,8 +113,8 @@ from jcloud_docsgen.core.python import (
docstring = False,
bases = True,
decorators = True,
class_body = True
)
class_body = True,
),
)
])
def test_parse_sections_list(include, exclude, expected):
@@ -127,7 +127,7 @@ def test_sections_error():
parser.parse_args([
'python',
'-s',
'param' # correct: `params`
'param', # correct: `params`
])
with pytest.raises(SystemExit):
@@ -135,7 +135,7 @@ def test_sections_error():
'python',
'-s',
'params',
'docstrng' # correct: `docstring`
'docstrng', # correct: `docstring`
])
def test_sections_success():
@@ -144,13 +144,13 @@ def test_sections_success():
parser.parse_args([
'python',
'-s',
'params'
'params',
])
parser.parse_args([
'python',
'-s',
'params',
'docstring'
'docstring',
])
def test_docs_generation(expectdir):
@@ -164,5 +164,5 @@ def test_docs_generation(expectdir):
'docstring',
'-HTo',
str(output_dir),
str(input_dir)
str(input_dir),
])