-
Notifications
You must be signed in to change notification settings - Fork 36
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
Changed to black formatter and added pre-commit #467
Conversation
|
||
# fmt: off |
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.
Needed?
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 is needed for black
to not format the code, because it moves the three dots on the same line and the flake
complains
@@ -1,7 +1,9 @@ | |||
from pathlib import Path | |||
|
|||
from multiversx_sdk_cli.projects.constants import (OLD_PROJECT_CONFIG_FILENAME, | |||
PROJECT_CONFIG_FILENAME) | |||
from multiversx_sdk_cli.projects.constants import ( |
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.
Maybe remove this file soon?
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.
will be removed indeed.
|
||
from multiversx_sdk_cli.config import get_address_hrp | ||
from multiversx_sdk_cli.errors import BadUsage | ||
from multiversx_sdk_cli.validators.validators_file import ValidatorsFile | ||
|
||
|
||
# fmt: off |
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.
Needed?
@@ -9,9 +8,9 @@ | |||
logger = logging.getLogger("downloader") | |||
|
|||
CHUNK_SIZE = 1024 * 16 | |||
LINECLEAR = '\r' + ' ' * 20 + '\r' | |||
LINECLEAR = "\r" + " " * 20 + "\r" |
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.
Maybe, in a future PR, replace this logic with the package wget
?
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.
will keep it in mind to replace it in a future PR.
@@ -3,6 +3,7 @@ | |||
from multiversx_sdk import Transaction | |||
|
|||
|
|||
# fmt: off |
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.
Needed?
No description provided.