From 78323a9f7cdcae3e017acf35779b2bbec7c82c9b Mon Sep 17 00:00:00 2001 From: Gianmarco Fraccaroli Date: Wed, 21 Aug 2024 09:17:09 +0200 Subject: [PATCH 1/2] remove .pyc files --- scripts/__pycache__/utils.cpython-312.pyc | Bin 6569 -> 0 bytes 1 file changed, 0 insertions(+), 0 deletions(-) delete mode 100644 scripts/__pycache__/utils.cpython-312.pyc diff --git a/scripts/__pycache__/utils.cpython-312.pyc b/scripts/__pycache__/utils.cpython-312.pyc deleted file mode 100644 index ead9d4c3775af197ac59290fe82c7cbbff3d658a..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 6569 zcmbVQTWniLdY<7qyi=s8`^6W^c5G9&CEK#>*m1HeOY$|5FLJVp8iS>IjwD*VdCt*| zOV+B^1*El5Gqtg1kN}~x50&8-5H>~OzPWD;v_M74*kukBVA1BG0{WmtF0k=S`u}ry zsLLw5iwgFyP9hR6N?T1Ciz;g6A=#mZ_8CFBv2NFT8iiAtsj zjhgyQ6zf7nh>Cq8uZt0L)Y506#6->!$$Xbc7Fm2M=v4ZwlC{q!+4}6f*ABf7*-`3s z@>VCbx@2dm)x}%Opw%r~O08v*M>a|2vb$fDym!Suk5nO-!@n2)E8)L_|5wRgXtVZP zq-toZlxp~xD!E*)hE|~-wguyBp|3{rNmW3xPIgQ6@HNP_Fte`TAvNAL_tkT1+xYA< zptc=mG)Oz{lD@|Ao&Kg|$2GZMW^ybf`@+#gM2^ZaHK>N;F<*b2`Oe6p!M3BVdJ**n zW0Fsi2S&rHFDOY&RuoxjSw;@|spdE{uFAbC3&#fFPwb8jN3pdh7?q{#!$3Nuvr^AN zCOoayLGg&lq>qAxOcL!ABvYR#34P{q(Qnpl-LX(y0-DK_NKt0`=G5_o>{H{uNLW#Q z>Y(f!39@i}Sn(;tiA0>KvgCs^@rkfQTx{6{S&!eM*#dzW>?sh?9DzVIE)7Sp?g|8M z4+kT~9%~>V#Y50+In&*FzU`=H)ysFDkX79FtHZ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Y*;8|4^Lu}k_x*Sko4#qTp`OgG6#~U-PTvG)l~c From 4043eeeac8a1e14b63351d3a98609ee28bf8566d Mon Sep 17 00:00:00 2001 From: Gianmarco Fraccaroli Date: Wed, 21 Aug 2024 09:24:37 +0200 Subject: [PATCH 2/2] minor ci improvements --- .github/workflows/pre-genesis-transactions-checks.yml | 9 ++++++--- scripts/validate-pr.py | 6 +++--- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/.github/workflows/pre-genesis-transactions-checks.yml b/.github/workflows/pre-genesis-transactions-checks.yml index 49b28bec..25c29f64 100644 --- a/.github/workflows/pre-genesis-transactions-checks.yml +++ b/.github/workflows/pre-genesis-transactions-checks.yml @@ -55,7 +55,8 @@ jobs: - name: Install dependencies run: poetry install --no-interaction if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true' - - run: | + - name: Check PR submission correctness + run: | source .venv/bin/activate poetry run python scripts/validate-pr.py env: @@ -96,7 +97,8 @@ jobs: - name: Install dependencies run: poetry install --no-interaction if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true' - - run: | + - name: Check PR submission correctness + run: | source .venv/bin/activate poetry run python scripts/validate-merge.py @@ -135,7 +137,8 @@ jobs: - name: Install dependencies run: poetry install --no-interaction if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true' - - run: | + - name: Rebuild README.md + run: | source .venv/bin/activate poetry run python scripts/rebuild.py - uses: stefanzweifel/git-auto-commit-action@v5 diff --git a/scripts/validate-pr.py b/scripts/validate-pr.py index 53cab8bc..51d39bbd 100644 --- a/scripts/validate-pr.py +++ b/scripts/validate-pr.py @@ -14,9 +14,9 @@ def read_env(): can_apply_for_bonds = os.environ.get('CAN_ADD_BONDS', True).lower() in ('true', '1', 't') can_apply_for_accounts = os.environ.get('CAN_ADD_ACCOUNTS', True).lower() in ('true', '1', 't') - print("Can add validators: {}", can_apply_for_validators) - print("Can add bonds: {}", can_apply_for_bonds) - print("Can add accounts: {}", can_apply_for_accounts) + print("Can add validators: {}".format(can_apply_for_validators)) + print("Can add bonds: {}".format(can_apply_for_bonds)) + print("Can add accounts: {}".format(can_apply_for_accounts)) return can_apply_for_validators, can_apply_for_bonds, can_apply_for_accounts