1
0
Fork 0
mirror of synced 2024-06-23 08:40:45 +12:00

Some fixes for pylint and workflow

This commit is contained in:
Dummerle 2021-09-18 17:21:43 +02:00
parent b7af237935
commit e79bee57c0
6 changed files with 7 additions and 5 deletions

View file

@ -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: |

View file

@ -5,6 +5,8 @@ import pathlib
import sys
from argparse import ArgumentParser
# from PyQt5.QtGui import QOpenGLDebugLogger, QOpenGLDebugMessage
def main():
# disable debug.log file

View 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):

View file

@ -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])

View file

@ -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):

View file

@ -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