-
Notifications
You must be signed in to change notification settings - Fork 285
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
CP-50100: backup-sr-metadata,restore-sr-metadata
: 2to3
, fix pytype
, pyright
#5795
CP-50100: backup-sr-metadata,restore-sr-metadata
: 2to3
, fix pytype
, pyright
#5795
Conversation
…hon3 Signed-off-by: Bernhard Kaindl <bernhard.kaindl@cloud.com>
Signed-off-by: Bernhard Kaindl <bernhard.kaindl@cloud.com>
… it) Signed-off-by: Bernhard Kaindl <bernhard.kaindl@cloud.com>
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.
@psafont: Please see the PR description on info about the fixes.
99f7e25
to
16e37e6
Compare
backup-sr-metadata,restore-sr-metadata
: 2to3
, fix pytype
, pyright
There are a few warnings remaining in |
Signed-off-by: Bernhard Kaindl <bernhard.kaindl@cloud.com>
77d7bb2
to
c8a1b5e
Compare
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.
@psafont: Applied the minimal fixes for the pylint warnings from reviewdog:
This fixes the warnings show in by GitHub CI (using reviewdog):
- Removed unused imports of
os
andtime
- Applied folding the too long line from the changes that
black
would make.
Any remaining formatting and pylint fixes can be applied later as well.
Main ticket CP-49100 :Move python3 scripts from scripts directory to python3 directory.
Sub task CP-50100:
2to3 and warning fixes to prepare its to move to python3 dirrectory:
Commit 1:
Commit 2:
pyright:
sys.exit()
from insideusage()
to after to make pyright aware of theexit
.apply isort to sort the imports
update the logout() handler to:
contextlib.suppress()
remove the unused variable
vdis
:vdis = session.xenapi.SR.get_all_records()
remove trailing whitespace
Author : Signed-off-by: Bernhard Kaindl bernhard.kaindl@cloud.com
Committed by: Signed-off-by: Ashwinh ashwin.h@cloud.com