1
0
Fork 0
mirror of synced 2024-06-26 10:11:19 +12:00

some fixes for pylint

This commit is contained in:
Dummerle 2021-09-13 22:44:59 +02:00
parent 1bb33d911c
commit ba05cf3d2e
4 changed files with 10 additions and 9 deletions

View file

@ -81,5 +81,5 @@ jobs:
pip install -r requirements.txt
- name: Analysing the code with pylint
run: |
pylint rare --disable=R,C,E0611,I1101,W1203,W1201,W0201 --ignore=ui,singleton.py,json_formatter.py --extension-pkg-whitelist=PyQt5
pylint -E rare --disable=E0611 --ignore=ui,singleton.py --extension-pkg-whitelist=PyQt5

View file

@ -10,8 +10,14 @@ from rare.utils import singleton
def main():
# CLI Options
# fix cx_freeze
import multiprocessing
multiprocessing.freeze_support()
# insert legendary submodule to path
sys.path.insert(0, os.path.join(pathlib.Path(__file__).parent.parent.absolute(), "legendary"))
# CLI Options
parser = ArgumentParser()
parser.add_argument("-V", "--version", action="store_true", help="Shows version and exits")
parser.add_argument("-S", "--silent", action="store_true",
@ -64,9 +70,4 @@ def main():
if __name__ == '__main__':
# fix error in cx_freeze
import multiprocessing
multiprocessing.freeze_support()
sys.path.insert(0, os.path.join(pathlib.Path(__file__).parent.parent.absolute(), "legendary"))
main()

View file

@ -1,7 +1,7 @@
from logging import getLogger
from PyQt5.QtCore import QThread, pyqtSignal, Qt
from PyQt5.QtWidgets import *
from PyQt5.QtWidgets import QScrollArea, QWidget, QVBoxLayout, QLabel, QPushButton, QMessageBox
from legendary.core import LegendaryCore
from legendary.models.game import SaveGameStatus

View file

@ -95,7 +95,7 @@ class DlQueueWidget(QGroupBox):
self.dl_queue.pop(index)
break
else:
logger.warning("BUG! ", app_name)
logger.warning("BUG! " + app_name)
return
self.update_list.emit(self.dl_queue)
self.update_queue(self.dl_queue)