Модели¶
Модуль¶
module ¶
PythonModule ¶
PythonModule(file_path: Path)
Source code in docstr_health/models/module.py
13 14 15 16 17 18 | |
release_tree ¶
release_tree()
Source code in docstr_health/models/module.py
35 36 37 38 | |
get_module_docstring ¶
get_module_docstring() -> str | object | None
Source code in docstr_health/models/module.py
72 73 74 75 | |
get_functions_size ¶
get_functions_size() -> dict[str, int]
Source code in docstr_health/models/module.py
77 78 | |
Функция¶
function ¶
PythonFunction ¶
PythonFunction(name: str, ast_node, source_file=None)
Source code in docstr_health/models/function.py
5 6 7 8 9 10 11 12 | |
get_docstring ¶
get_docstring() -> str | None
Source code in docstr_health/models/function.py
55 56 | |
is_decorator_applied ¶
is_decorator_applied(decorator_name: str) -> bool
Source code in docstr_health/models/function.py
58 59 | |
Класс¶
class ¶
PythonClass ¶
PythonClass(name: str, ast_node: ClassDef)
Source code in docstr_health/models/class.py
5 | |
Отчёт¶
report ¶
ModuleReport ¶
ModuleReport(
module_status: str,
inspected_functions: list[PythonFunction],
)
Source code in docstr_health/models/report.py
7 8 9 10 11 12 | |
ProjectReport ¶
ProjectReport(statuses: Counter | None = None)
Source code in docstr_health/models/report.py
35 36 | |
get_project_status ¶
get_project_status() -> str
Source code in docstr_health/models/report.py
38 39 40 41 42 | |