style: ensure trailing newlines

This commit is contained in:
jakob.scheid committed 2026-09-01 16:54:03 +02:00
1 parent 3a05718612
commit 3428c54d99
48 files changed
+48 -48

No files matched your search

+1 -1
View File
@@ -19,4 +19,4 @@ from .core import __all__ as _core__all__
__all__ = [
'cli',
*_core__all__
]
]
+1 -1
View File
@@ -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
+1 -1
View File
@@ -16,4 +16,4 @@ from . import python
__all__ = [
'python'
]
]
+1 -1
View File
@@ -19,4 +19,4 @@ from . import namespaces
__all__ = [
*_core__all__,
'namespaces'
]
]
+1 -1
View File
@@ -951,4 +951,4 @@ class PythonDocumentationGenerator:
self.project_directory / 'src',
self.include_sections,
self.kwargs
)
)
+1 -1
View File
@@ -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))
]
)
)
+1 -1
View File
@@ -46,4 +46,4 @@ class PythonDocstring:
:rtype: docstring_parser.Docstring
'''
return docstring_parser.parse(self.docstring)
return docstring_parser.parse(self.docstring)
+1 -1
View File
@@ -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
+1 -1
View File
@@ -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): ...
+1 -1
View File
@@ -172,4 +172,4 @@ def get_relative_path_segments(path: pathlib.Path, root: pathlib.Path) -> list[s
root.resolve()
)
.parts
)
)