forked from dashpay/dash
-
Notifications
You must be signed in to change notification settings - Fork 715
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
[Tests][Scripts] Bump Python version to 3.8 and add more linting #2877
Merged
Commits on Aug 17, 2023
-
Configuration menu - View commit details
-
Copy full SHA for f46217b - Browse repository at this point
Copy the full SHA f46217bView commit details -
Strictly enforce instance attrs in critical functional test classes.
Additionally, removed redundant parentheses and added PEP-8 compliant spacing around those classes.
Configuration menu - View commit details
-
Copy full SHA for a560910 - Browse repository at this point
Copy the full SHA a560910View commit details -
Configuration menu - View commit details
-
Copy full SHA for 036ab88 - Browse repository at this point
Copy the full SHA 036ab88View commit details -
Configuration menu - View commit details
-
Copy full SHA for 457f2a8 - Browse repository at this point
Copy the full SHA 457f2a8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5619891 - Browse repository at this point
Copy the full SHA 5619891View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8c0dd38 - Browse repository at this point
Copy the full SHA 8c0dd38View commit details -
scripts: exclude wallet_bumpfee.py from linting
this is a test that we don't actually support at the moment.
Configuration menu - View commit details
-
Copy full SHA for 19862fd - Browse repository at this point
Copy the full SHA 19862fdView commit details -
Configuration menu - View commit details
-
Copy full SHA for 77b42a2 - Browse repository at this point
Copy the full SHA 77b42a2View commit details -
Configuration menu - View commit details
-
Copy full SHA for ef83f5b - Browse repository at this point
Copy the full SHA ef83f5bView commit details -
scripted-diff: test: Remove brackets after assert
-BEGIN VERIFY SCRIPT- sed -i --regexp-extended -e 's/assert ?\((.+)\)(( )*)?(#.*)?$/assert \1\3\3\4/g' $(git grep -l --extended-regexp 'assert ?\(' test) -END VERIFY SCRIPT-
Configuration menu - View commit details
-
Copy full SHA for 07d1c56 - Browse repository at this point
Copy the full SHA 07d1c56View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6f822ae - Browse repository at this point
Copy the full SHA 6f822aeView commit details -
scripts: clean github-merge.py and symbol-check.py
clean both files to adhere to flake8 standards.
Configuration menu - View commit details
-
Copy full SHA for c757ce3 - Browse repository at this point
Copy the full SHA c757ce3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 139ae9d - Browse repository at this point
Copy the full SHA 139ae9dView commit details -
scripted-diff: test: Use py3.5 bytes::hex() method
-BEGIN VERIFY SCRIPT- sed -i -e "s/def bytes_to_hex_str/def b_2_x/g" $(git grep -l bytes_to_hex_str) export RE_B_0="[^()]*" # match no bracket export RE_B_1="${RE_B_0}\(${RE_B_0}\)${RE_B_0}" # match exactly one () export RE_B_2="${RE_B_0}\(${RE_B_1}\)${RE_B_0}" # match wrapped (()) export RE_M="(b2x|bytes_to_hex_str)\(((${RE_B_0}|${RE_B_1}|${RE_B_2})*)\)" sed -i --regexp-extended -e "s/${RE_M}/\2.hex()/g" $(git grep -l -E '(b2x|bytes_to_hex_str)') sed -i --regexp-extended -e "/ +bytes_to_hex_str( as b2x)?,/d" $(git grep -l bytes_to_hex_str) sed -i --regexp-extended -e "s/ +bytes_to_hex_str( as b2x)?,//g" $(git grep -l bytes_to_hex_str) sed -i --regexp-extended -e "s/, bytes_to_hex_str( as b2x)?//g" $(git grep -l bytes_to_hex_str) export RE_M="(binascii\.)?hexlify\(((${RE_B_0}|${RE_B_1}|${RE_B_2})*)\).decode\(${RE_B_0}\)" sed -i --regexp-extended -e "s/${RE_M}/\2.hex()/g" $(git grep -l hexlify -- ':(exclude)share') sed -i --regexp-extended -e "/from binascii import hexlify$/d" $(git grep -l hexlify -- ':(exclude)share') sed -i --regexp-extended -e "s/(from binascii import) .*hexlify/\1 unhexlify/g" $(git grep -l hexlify -- ':(exclude)share') sed -i -e 's/ignore-names "/ignore-names "b_2_x,/g' ./test/lint/lint-python-dead-code.sh -END VERIFY SCRIPT-
Configuration menu - View commit details
-
Copy full SHA for ec22835 - Browse repository at this point
Copy the full SHA ec22835View commit details -
Configuration menu - View commit details
-
Copy full SHA for 17bc5bf - Browse repository at this point
Copy the full SHA 17bc5bfView commit details -
Configuration menu - View commit details
-
Copy full SHA for c340533 - Browse repository at this point
Copy the full SHA c340533View commit details
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.