Skip to content

Commit

Permalink
clean(installer): reformat code and check types of objects
Browse files Browse the repository at this point in the history
  • Loading branch information
maugde committed Aug 5, 2024
1 parent 21e424a commit 7fa3e8f
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 5 deletions.
2 changes: 0 additions & 2 deletions src/antares_web_installer/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@

from platformdirs import user_data_dir

from antares_web_installer.shortcuts import get_homedir

TARGET_DIR = Path(user_data_dir("AntaresWeb", "RTE"))
SRC_DIR = Path(".")

Expand Down
2 changes: 1 addition & 1 deletion src/antares_web_installer/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

from difflib import SequenceMatcher
from pathlib import Path
from shutil import copy2, copytree, SameFileError
from shutil import copy2, copytree

from pythoncom import com_error

Expand Down
1 change: 1 addition & 0 deletions src/antares_web_installer/gui/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ class WizardModel(Model):
@param shortcut_dir:
@param launch:
"""

def __init__(self, controller: Controller):
super().__init__(controller)
self.source_dir = SRC_DIR
Expand Down
1 change: 1 addition & 0 deletions src/antares_web_installer/gui/mvc.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
Model View Controller module.
Defines base classes for MVC architecture.
"""

from __future__ import annotations

import tkinter as tk
Expand Down
9 changes: 8 additions & 1 deletion src/antares_web_installer/gui/view.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,15 @@
from tkinter.messagebox import showerror, showwarning

from antares_web_installer.gui.mvc import View, ControllerError, ViewError
from antares_web_installer.gui.widgets.frame import WelcomeFrame, PathChoicesFrame, OptionChoicesFrame, CongratulationFrame, ProgressFrame
from antares_web_installer.gui.widgets.frame import (
WelcomeFrame,
PathChoicesFrame,
OptionChoicesFrame,
CongratulationFrame,
ProgressFrame,
)
from antares_web_installer.gui.widgets import convert_in_du

if typing.TYPE_CHECKING:
from antares_web_installer.gui.controller import WizardController

Expand Down
1 change: 0 additions & 1 deletion src/antares_web_installer/shortcuts/_win32_shell.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
"""

import os
import re
import typing as t

import win32com.client
Expand Down

0 comments on commit 7fa3e8f

Please sign in to comment.