-
Notifications
You must be signed in to change notification settings - Fork 0
Sourcery refactored master branch #1
base: master
Are you sure you want to change the base?
Conversation
def toFormat(format = ["Json", "Raw String"]): | ||
def toFormat(self): |
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.
Function DataVault.toFormat
refactored with the following changes:
- The first argument to instance methods should be
self
(instance-method-first-arg-name
)
return f"El parametro 'path' no posee un formato valido. Proporciona una ruta de sistema" | ||
return "El parametro 'path' no posee un formato valido. Proporciona una ruta de sistema" |
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.
Function Compressor.__init__
refactored with the following changes:
- Replace f-string with no interpolated values with string (
remove-redundant-fstring
)
|
||
if _ and file_name: | ||
|
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.
Function Notepad.saveToFile
refactored with the following changes:
- Hoist repeated code outside conditional statement (
hoist-statement-from-if
)
else: | ||
pass |
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.
Function Notepad.clearText
refactored with the following changes:
- Remove redundant pass statement (
remove-redundant-pass
)
extra_selections=[] | ||
|
||
#*Aseguramos que el texto se pueda modificar | ||
if ok and not self.text_field.isReadOnly(): | ||
#*Mueve el cursor al principio del texto | ||
self.text_field.moveCursor(QTextCursor.Start) | ||
color= QColor(Qt.yellow) | ||
extra_selections=[] | ||
|
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.
Function Notepad.findTextDialog
refactored with the following changes:
- Move assignments closer to their usage (
move-assign
)
Branch
master
refactored by Sourcery.If you're happy with these changes, merge this Pull Request using the Squash and merge strategy.
See our documentation here.
Run Sourcery locally
Reduce the feedback loop during development by using the Sourcery editor plugin:
Review changes via command line
To manually merge these changes, make sure you're on the
master
branch, then run:Help us improve this pull request!