Some fixes for pylint and workflow
This commit is contained in:
parent
b7af237935
commit
e79bee57c0
2
.github/workflows/release.yml
vendored
2
.github/workflows/release.yml
vendored
|
@ -76,7 +76,7 @@ jobs:
|
|||
- name: Install legendary
|
||||
run: |
|
||||
pushd legendary
|
||||
python setup.py install
|
||||
sudo python setup.py install
|
||||
popd
|
||||
- name: Prepare Build directory
|
||||
run: |
|
||||
|
|
|
@ -5,6 +5,8 @@ import pathlib
|
|||
import sys
|
||||
from argparse import ArgumentParser
|
||||
|
||||
# from PyQt5.QtGui import QOpenGLDebugLogger, QOpenGLDebugMessage
|
||||
|
||||
|
||||
def main():
|
||||
# disable debug.log file
|
||||
|
|
|
@ -150,7 +150,7 @@ class TabWidget(QTabWidget):
|
|||
downloads = len(self.downloadTab.dl_queue) + len(self.downloadTab.update_widgets.keys())
|
||||
self.setTabText(1, "Downloads" + ((" (" + str(downloads) + ")") if downloads != 0 else ""))
|
||||
self.games_tab.default_widget.game_list.update_list(app_name)
|
||||
self.games_tab.layout.setCurrentIndex(0)
|
||||
self.games_tab.layout().setCurrentIndex(0)
|
||||
|
||||
# Sync game and delete dc rpc
|
||||
def game_finished(self, app_name):
|
||||
|
|
|
@ -181,7 +181,7 @@ class RareSettings(QWidget, Ui_RareSettings):
|
|||
|
||||
def open_dir(self):
|
||||
if platform.system() == "Windows":
|
||||
os.startfile(self.logdir)
|
||||
os.startfile(self.logdir) # pylint: disable=E1101
|
||||
else:
|
||||
opener = "open" if sys.platform == "darwin" else "xdg-open"
|
||||
subprocess.Popen([opener, self.logdir])
|
||||
|
|
|
@ -88,7 +88,7 @@ class ShopApiCore(QObject):
|
|||
logger.error(str(e))
|
||||
handle_func([])
|
||||
else:
|
||||
self.browse_games(*self.next_browse_request)
|
||||
self.browse_games(*self.next_browse_request) # pylint: disable=E1120
|
||||
self.next_browse_request = tuple(())
|
||||
|
||||
def get_game(self, slug: str, is_bundle: bool, handle_func):
|
||||
|
|
|
@ -15,7 +15,7 @@ from PyQt5.QtGui import QPalette, QColor, QPixmap
|
|||
# Windows
|
||||
|
||||
if platform.system() == "Windows":
|
||||
from win32com.client import Dispatch
|
||||
from win32com.client import Dispatch # pylint: disable=E0401
|
||||
|
||||
from rare import languages_path, resources_path, image_dir
|
||||
# Mac not supported
|
||||
|
|
Loading…
Reference in a new issue