Skip to content
This repository has been archived by the owner on Jan 29, 2023. It is now read-only.

adjust github pre-commit action #510

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 7 additions & 11 deletions .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,10 @@ jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- uses: actions/cache@v1
with:
path: ~/.cache/pre-commit
key: pre-commit|${{ env.PY }}|${{ hashFiles('.pre-commit-config.yaml') }}
- id: file_changes
uses: jitterbit/get-changed-files@v1
- uses: pre-commit/[email protected]
with:
extra_args: --files ${{ steps.file_changes.outputs.all }}
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- uses: actions/cache@v1
with:
path: ~/.cache/pre-commit
key: pre-commit|${{ env.PY }}|${{ hashFiles('.pre-commit-config.yaml') }}
- uses: pre-commit/[email protected]
4 changes: 4 additions & 0 deletions electrum_gui/android/console.py
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,10 @@ def update_local_wallet_info(self, name, wallet_type):
self.config.set_key("all_wallet_type_info", self.local_wallet_info)

def init_local_wallet_info(self):
a = "xxx"
huazhouwang marked this conversation as resolved.
Show resolved Hide resolved
if a is "xxx":
print()

try:
self.local_wallet_info = self.config.get("all_wallet_type_info", {})
new_wallet_info = {}
Expand Down
1 change: 1 addition & 0 deletions electrum_gui/common/basic/request/enums.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ class Method(IntEnum):
POST = 2

def as_str(self) -> str:
a = ""
return "GET" if self == Method.GET else "POST"