diff options
Diffstat (limited to 'kodereviewer/app.py')
-rw-r--r-- | kodereviewer/app.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/kodereviewer/app.py b/kodereviewer/app.py index 94a4e55..ad019a4 100644 --- a/kodereviewer/app.py +++ b/kodereviewer/app.py @@ -9,8 +9,16 @@ from PySide6.QtGui import QGuiApplication from PySide6.QtCore import QUrl, QByteArray from PySide6.QtQml import QQmlApplicationEngine, qmlRegisterType +from kodereviewer.models.file import FileModel from kodereviewer.network_manager import NetworkManager from kodereviewer.models import CommentModel, LabelModel, LineModel, PullRequestModel, ProjectModel +import logging +from rich.logging import RichHandler + +FORMAT = "%(message)s" +logging.basicConfig( + level="INFO", format=FORMAT, datefmt="[%X]", handlers=[RichHandler()] +) def main(): @@ -35,6 +43,7 @@ def main(): qmlRegisterType(ProjectModel, "org.deprecated.kodereviewer", 1, 0, "ProjectModel") qmlRegisterType(CommentModel, "org.deprecated.kodereviewer", 1, 0, "CommentModel") + qmlRegisterType(FileModel, "org.deprecated.kodereviewer", 1, 0, "FileModel") qmlRegisterType(LabelModel, "org.deprecated.kodereviewer", 1, 0, "LabelModel") qmlRegisterType(LineModel, "org.deprecated.kodereviewer", 1, 0, "LineModel") qmlRegisterType(PullRequestModel, "org.deprecated.kodereviewer", 1, 0, "PullRequestModel") |