Skip to content

Commit

Permalink
pylint
Browse files Browse the repository at this point in the history
  • Loading branch information
gciftci committed Apr 29, 2023
1 parent 307502e commit e346a84
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 18 deletions.
2 changes: 0 additions & 2 deletions app/ui/main_window.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@ def __init__(self) -> None:
central_widget.setLayout(layout)

# Create Widgets
self.topbar = None
self.rightbar = None
self.treeview = self.create_treeview()
self.editbox = self.create_edit()

Expand Down
6 changes: 3 additions & 3 deletions app/ui/widgets/menubar.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@ def __init__(self, parent=None) -> None:
# help_menu = self.addMenu("Help")

# Add actions to the menus
file_menu.addAction(self.parent().topbar.actions["Open"]) # type: ignore
file_menu.addAction(self.parent().topbar.actions["Save"]) # type: ignore
file_menu.addAction(self.parent().topbar.actions["Exit"]) # type: ignore
file_menu.addAction(self.parent().topbar.actions_call["Open"]) # type: ignore
file_menu.addAction(self.parent().topbar.actions_call["Save"]) # type: ignore
file_menu.addAction(self.parent().topbar.actions_call["Exit"]) # type: ignore
6 changes: 6 additions & 0 deletions app/ui/widgets/treeview.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,9 @@ def __init__(self, parent=None) -> None:
self.setColumnWidth(0, 100)
self.setFixedWidth(150)
self.setSortingEnabled(True)

def clear_view(self) -> None:
"""
Clearing the TreeView
"""
self.destroy(destroySubWindows=True)
15 changes: 8 additions & 7 deletions app/utils/config.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
# app\utils\config.py
''' app/utils/config.py '''


class AppConfig:
"""
Configuration File
"""
APP_NAME: str = "PyQt Profiling Tool"

@classmethod
Expand All @@ -10,9 +13,7 @@ def initialize(cls) -> None:
Perform any necessary initializations here, e.g.:
- Loading settings from a file
"""
pass

'''
TODO: #14 Create config parsing
TODO: #15 Add proper scope
'''
def get_var(self) -> None:
"""
Get the Var.
"""
4 changes: 1 addition & 3 deletions app/utils/logging.py
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
# app\utils\logging.py

# TODO: #16 Implement "app\utils\logging.py"
''' app/utils/logging.py '''
3 changes: 1 addition & 2 deletions app/utils/utils.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
# app\utils\utils.py
''' app/utils/utils.py '''

# TODO: #17 Implement "app\utils\utils.py"
2 changes: 1 addition & 1 deletion pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ extension-pkg-allow-list=
# be loaded. Extensions are loading into the active Python interpreter and may
# run arbitrary code. (This is an alternative name to extension-pkg-allow-list
# for backward compatibility.)
extension-pkg-whitelist=PyQt6
extension-pkg-whitelist=PyQt6, PyQt6.QtWidgets, QtWidgets, PyQt6.QtGui, QtGui,

# Return non-zero exit code if any of these messages/categories are detected,
# even if score is above --fail-under value. Syntax same as enable. Messages
Expand Down

0 comments on commit e346a84

Please sign in to comment.