-
Notifications
You must be signed in to change notification settings - Fork 109
DebugHandle Weak pointer to TxContext #2160
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
Merged
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
ca9cc06
DebugHandle Weak pointer to TxContext
andrei-marinica 5162d8d
Merge branch 'master' into weak-handle-context
andrei-marinica 7db86dd
DebugHandle Weak pointer to TxContext LLDB fix
andrei-marinica 292413c
DebugHandle ptr eq optimization
andrei-marinica acdd326
docs
andrei-marinica 691c929
DebugHandle LLVM dropped TxContext error & tests
andrei-marinica 56954bf
lldb py ignore warning
andrei-marinica f7cda84
test fix
andrei-marinica 356e455
python formatting
andrei-marinica File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,41 @@ | ||
| #!/bin/bash | ||
|
|
||
| # Python code formatting script for MultiversX SDK pretty-printers | ||
| echo "🐍 Formatting Python code..." | ||
|
|
||
| # Get the SDK root directory (3 levels up from this script) | ||
| SDK_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/../../.." && pwd)" | ||
| PYTHON_CMD="$SDK_ROOT/.venv/bin/python" | ||
|
|
||
| # Find Python files in this directory | ||
| PYTHON_FILES=$(find . -name "*.py" -maxdepth 1) | ||
|
|
||
| if [ -z "$PYTHON_FILES" ]; then | ||
| echo "No Python files found to format" | ||
| exit 0 | ||
| fi | ||
|
|
||
| echo "Found $(echo "$PYTHON_FILES" | wc -l) Python files to format" | ||
|
|
||
| # Check if virtual environment exists | ||
| if [ ! -f "$PYTHON_CMD" ]; then | ||
| echo "❌ Python virtual environment not found at $PYTHON_CMD" | ||
| echo "Please run 'configure_python_environment' from the SDK root first" | ||
| exit 1 | ||
| fi | ||
|
|
||
| # 1. Sort imports with isort | ||
| echo "📦 Sorting imports with isort..." | ||
| $PYTHON_CMD -m isort $PYTHON_FILES | ||
|
|
||
| # 2. Format code with black | ||
| echo "🖤 Formatting code with black..." | ||
| $PYTHON_CMD -m black $PYTHON_FILES | ||
|
|
||
| # 3. Check style with flake8 (optional) | ||
| if [ "$1" = "--check" ]; then | ||
| echo "🔍 Checking style with flake8..." | ||
| $PYTHON_CMD -m flake8 $PYTHON_FILES --max-line-length=88 --extend-ignore=E203,W503 | ||
| fi | ||
|
|
||
| echo "✅ Python formatting complete!" |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.