Skip to content
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

Merged
merged 4 commits into from
Jan 29, 2025
Merged

Conversation

popenta
Copy link
Collaborator

@popenta popenta commented Jan 29, 2025

No description provided.

@popenta popenta self-assigned this Jan 29, 2025
Base automatically changed from integrate-sdk-py-v1 to main January 29, 2025 10:49
@popenta popenta changed the base branch from main to feat/next January 29, 2025 11:08

# fmt: off
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needed?

Copy link
Collaborator Author

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 (
Copy link
Contributor

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?

Copy link
Collaborator Author

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
Copy link
Contributor

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"
Copy link
Contributor

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?

Copy link
Collaborator Author

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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needed?

@popenta popenta merged commit 102b114 into feat/next Jan 29, 2025
12 checks passed
@popenta popenta deleted the change-formatter branch January 29, 2025 11:53
@andreibancioiu andreibancioiu added this to the v10 milestone Feb 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants