generated from jCloud/repository-template
chore: lint source code using Ruff
This commit is contained in:
35 files changed
+161
-130
No files matched your search
@@ -13,11 +13,11 @@
|
||||
# limitations under the License.
|
||||
|
||||
import pathlib
|
||||
|
||||
from ...core.python import (
|
||||
PythonDefinitionDocumentationIncludeSections,
|
||||
PythonDocumentationGenerator,
|
||||
)
|
||||
from typing import Optional
|
||||
|
||||
__all__ = [
|
||||
'VALID_SECTIONS',
|
||||
@@ -31,7 +31,7 @@ VALID_SECTIONS = list(
|
||||
|
||||
|
||||
def parse_sections_list(
|
||||
include_sections: Optional[list[str]] = None,
|
||||
include_sections: list[str] | None = None,
|
||||
exclude_sections: list[str] = [],
|
||||
) -> PythonDefinitionDocumentationIncludeSections:
|
||||
"""
|
||||
@@ -41,7 +41,7 @@ def parse_sections_list(
|
||||
the section name.
|
||||
|
||||
:param include_sections: The list of sections to be included.
|
||||
:type include_sections: Optional[list[str]]
|
||||
:type include_sections: list[str] | None
|
||||
:param exclude_sections: The list of sections to be excluded.
|
||||
:type exclude_sections: list[str]
|
||||
|
||||
@@ -110,7 +110,7 @@ def generate(
|
||||
project_directory: pathlib.Path,
|
||||
output_directory: pathlib.Path,
|
||||
*,
|
||||
include_sections: Optional[list[str]] = None,
|
||||
include_sections: list[str] | None = None,
|
||||
exclude_sections: list[str] = [],
|
||||
allow_html: bool = False,
|
||||
allow_tables: bool = False,
|
||||
@@ -124,7 +124,7 @@ def generate(
|
||||
:type output_directory: pathlib.Path
|
||||
:param include_sections: The sections to be included in the
|
||||
documentation.
|
||||
:type include_sections: Optional[list[str]]
|
||||
:type include_sections: list[str] | None
|
||||
:param exclude_sections: The sections to be excluded in the
|
||||
documentation.
|
||||
:type exclude_sections: list[str]
|
||||
|
||||
Reference in new issue
Block a user