generated from jCloud/repository-template
style: ensure trailing commas in multi-line statements
This commit is contained in:
30 files changed
+1778
-1774
No files matched your search
@@ -15,14 +15,14 @@
|
||||
import pathlib
|
||||
from ...core.python import (
|
||||
PythonDefinitionDocumentationIncludeSections,
|
||||
PythonDocumentationGenerator
|
||||
PythonDocumentationGenerator,
|
||||
)
|
||||
from typing import Optional
|
||||
|
||||
__all__ = [
|
||||
'VALID_SECTIONS',
|
||||
'parse_sections_list',
|
||||
'generate'
|
||||
'generate',
|
||||
]
|
||||
|
||||
VALID_SECTIONS = list(
|
||||
@@ -31,7 +31,7 @@ VALID_SECTIONS = list(
|
||||
|
||||
def parse_sections_list(
|
||||
include_sections: Optional[list[str]] = None,
|
||||
exclude_sections: list[str] = []
|
||||
exclude_sections: list[str] = [],
|
||||
) -> PythonDefinitionDocumentationIncludeSections:
|
||||
'''
|
||||
Returns a Python definition documentation sections list from the
|
||||
@@ -64,7 +64,7 @@ def parse_sections_list(
|
||||
docstring = 'docstring' in include_sections,
|
||||
bases = 'bases' in include_sections,
|
||||
decorators = 'decorators' in include_sections,
|
||||
class_body = 'class_body' in include_sections
|
||||
class_body = 'class_body' in include_sections,
|
||||
)
|
||||
|
||||
def _generate(
|
||||
@@ -75,7 +75,7 @@ def _generate(
|
||||
PythonDefinitionDocumentationIncludeSections()
|
||||
),
|
||||
allow_html: bool = False,
|
||||
allow_tables: bool = False
|
||||
allow_tables: bool = False,
|
||||
) -> None:
|
||||
'''
|
||||
Generates the documentation for a Python project.
|
||||
@@ -99,7 +99,7 @@ def _generate(
|
||||
output_directory,
|
||||
include_sections = include_sections,
|
||||
allow_html = allow_html,
|
||||
allow_tables = allow_tables
|
||||
allow_tables = allow_tables,
|
||||
)
|
||||
docs_generator.generate_documentation()
|
||||
|
||||
@@ -110,7 +110,7 @@ def generate(
|
||||
include_sections: Optional[list[str]] = None,
|
||||
exclude_sections: list[str] = [],
|
||||
allow_html: bool = False,
|
||||
allow_tables: bool = False
|
||||
allow_tables: bool = False,
|
||||
) -> None:
|
||||
'''
|
||||
Generates the documentation for a Python project.
|
||||
@@ -139,5 +139,5 @@ def generate(
|
||||
output_directory,
|
||||
include_sections = sections,
|
||||
allow_html = allow_html,
|
||||
allow_tables = allow_tables
|
||||
allow_tables = allow_tables,
|
||||
)
|
||||
Reference in new issue
Block a user