generated from jCloud/repository-template
style: ensure trailing newlines
This commit is contained in:
48 files changed
+48
-48
No files matched your search
@@ -19,4 +19,4 @@ from .core import __all__ as _core__all__
|
||||
__all__ = [
|
||||
'cli',
|
||||
*_core__all__
|
||||
]
|
||||
]
|
||||
@@ -34,4 +34,4 @@ def main() -> int:
|
||||
argument_parser = argparse.ArgumentParser()
|
||||
argument_parser.add_argument('project_directory', type = existing_directory, default = pathlib.Path('.'), help = 'The directory of the project')
|
||||
args = argument_parser.parse_args()
|
||||
return 0
|
||||
return 0
|
||||
@@ -16,4 +16,4 @@ from . import python
|
||||
|
||||
__all__ = [
|
||||
'python'
|
||||
]
|
||||
]
|
||||
@@ -19,4 +19,4 @@ from . import namespaces
|
||||
__all__ = [
|
||||
*_core__all__,
|
||||
'namespaces'
|
||||
]
|
||||
]
|
||||
@@ -951,4 +951,4 @@ class PythonDocumentationGenerator:
|
||||
self.project_directory / 'src',
|
||||
self.include_sections,
|
||||
self.kwargs
|
||||
)
|
||||
)
|
||||
@@ -170,4 +170,4 @@ class PythonASTArgumentsListParser:
|
||||
else:
|
||||
arguments.append(PythonFunctionArgument(self.ast_arguments_list.kwarg.arg, PythonArgumentKind.KWARGS, None, ast.unparse(self.ast_arguments_list.kwarg.annotation)))
|
||||
|
||||
return arguments
|
||||
return arguments
|
||||
@@ -229,4 +229,4 @@ class PythonClassDefinition(PythonDefinition):
|
||||
for expr in node.body
|
||||
if isinstance(expr, (ast.FunctionDef, ast.AsyncFunctionDef, ast.ClassDef))
|
||||
]
|
||||
)
|
||||
)
|
||||
@@ -46,4 +46,4 @@ class PythonDocstring:
|
||||
:rtype: docstring_parser.Docstring
|
||||
'''
|
||||
|
||||
return docstring_parser.parse(self.docstring)
|
||||
return docstring_parser.parse(self.docstring)
|
||||
@@ -186,4 +186,4 @@ class PythonModuleNamespace(PythonNamespace):
|
||||
super().__init__(name)
|
||||
|
||||
def __eq__(self, value: PythonModuleNamespace) -> bool:
|
||||
return self.name == value.name
|
||||
return self.name == value.name
|
||||
@@ -76,4 +76,4 @@ class PythonDefinitionError(ValueError):
|
||||
else:
|
||||
return f'{self.args[0]}{": " if self.definition and self.args[0] else ""}{self.definition if self.args[0] else ""}'
|
||||
|
||||
class PythonArgumentStructureError(PythonDefinitionError): ...
|
||||
class PythonArgumentStructureError(PythonDefinitionError): ...
|
||||
@@ -172,4 +172,4 @@ def get_relative_path_segments(path: pathlib.Path, root: pathlib.Path) -> list[s
|
||||
root.resolve()
|
||||
)
|
||||
.parts
|
||||
)
|
||||
)
|
||||
Reference in new issue
Block a user