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

Python Scripts & Updates #32

Merged
merged 16 commits into from
Feb 23, 2024
Merged

Python Scripts & Updates #32

merged 16 commits into from
Feb 23, 2024

Commits on Sep 1, 2023

  1. Github Workflows + Python Update

    Setup GitHub Workflows, added folder and two .yml files, updated Python version.
    YuurinBee committed Sep 1, 2023
    Configuration menu
    Copy the full SHA
    7c6dc6c View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    59a6e5f View commit details
    Browse the repository at this point in the history
  3. 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-
    YuurinBee committed Sep 1, 2023
    Configuration menu
    Copy the full SHA
    3e289f8 View commit details
    Browse the repository at this point in the history
  4. Add Lint Files

    Added lint folder, files, scripts, etc.
    YuurinBee committed Sep 1, 2023
    Configuration menu
    Copy the full SHA
    c4d858d View commit details
    Browse the repository at this point in the history
  5. scripts: clean github-merge.py and symbol-check.py

    clean both files to adhere to flake8 standards.
    YuurinBee committed Sep 1, 2023
    Configuration menu
    Copy the full SHA
    bc09af5 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    a5a61e9 View commit details
    Browse the repository at this point in the history
  7. 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-
    YuurinBee committed Sep 1, 2023
    Configuration menu
    Copy the full SHA
    2c762d0 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    fe26109 View commit details
    Browse the repository at this point in the history
  9. scripts: exclude wallet_bumpfee.py from linting

    currently unsupported test
    YuurinBee committed Sep 1, 2023
    Configuration menu
    Copy the full SHA
    d138a35 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    93a8ddd View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    4cbd42f View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    667e40a View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    668bdf3 View commit details
    Browse the repository at this point in the history

Commits on Sep 2, 2023

  1. Strictly enforce instance attrs in critical functional test classes.

    Additionally, removed redundant parentheses and added PEP-8 compliant
    spacing around those classes.
    YuurinBee committed Sep 2, 2023
    Configuration menu
    Copy the full SHA
    bbc83cf View commit details
    Browse the repository at this point in the history
  2. Create feature_dbcrash.py

    YuurinBee committed Sep 2, 2023
    Configuration menu
    Copy the full SHA
    cd61a9f View commit details
    Browse the repository at this point in the history
  3. Update test_runner.py

    YuurinBee committed Sep 2, 2023
    Configuration menu
    Copy the full SHA
    197cb61 View commit details
    Browse the repository at this point in the history