-
Notifications
You must be signed in to change notification settings - Fork 575
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fixed CQ for bitmessageqt.languagebox module #1643
Conversation
src/bitmessageqt/languagebox.py
Outdated
self.clear() | ||
localesPath = os.path.join(paths.codePath(), 'translations') | ||
self.addItem(QtGui.QApplication.translate( | ||
"settingsDialog", "System Settings", "system"), "system") | ||
self.setCurrentIndex(0) | ||
self.setInsertPolicy(QtGui.QComboBox.InsertAlphabetically) | ||
for translationFile in sorted( | ||
glob.glob(os.path.join(localesPath, "bitmessage_*.qm")) | ||
glob.glob(os.path.join(localesPath, "bitmessage_*.qm")) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not necessary
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@g1itch pylint complains for it
C: 33, 0: Wrong hanging indentation before block (add 4 spaces).
glob.glob(os.path.join(localesPath, "bitmessage_*.qm"))
^ | (bad-continuation)
what possible I can do with this ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's a bug:
psf/black#48
pylint-dev/pylint#289
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tired to point all of you to the same bugs and PEP8 sections...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@g1itch so for now I should undo this ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
undo change and override pylint
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
src/bitmessageqt/languagebox.py
Outdated
@@ -8,24 +10,27 @@ | |||
|
|||
|
|||
class LanguageBox(QtGui.QComboBox): | |||
"""LanguageBox class for QT UI""" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Qt is not QT
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@g1itch sorry for that give me a minute,I am fixing it right now.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed.
pylint fixes for bitmessageqt.languagebox module