Skip to content

Commit

Permalink
make format
Browse files Browse the repository at this point in the history
  • Loading branch information
callebtc committed Oct 21, 2023
1 parent e3f9f5d commit 57cb16e
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 29 deletions.
10 changes: 5 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ repos:
- id: debug-statements
- id: mixed-line-ending
- id: check-case-conflict
- repo: https://github.com/psf/black
rev: 23.7.0
hooks:
- id: black
args: [--line-length=88]
# - repo: https://github.com/psf/black
# rev: 23.7.0
# hooks:
# - id: black
# args: [--line-length=88]
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.0.283
hooks:
Expand Down
36 changes: 12 additions & 24 deletions cashu/mint/crud.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@ async def get_keyset(
id: str = "",
derivation_path: str = "",
conn: Optional[Connection] = None,
) -> List[MintKeyset]:
...
) -> List[MintKeyset]: ...

@abstractmethod
async def get_lightning_invoice(
Expand All @@ -31,17 +30,15 @@ async def get_lightning_invoice(
db: Database,
id: str,
conn: Optional[Connection] = None,
) -> Optional[Invoice]:
...
) -> Optional[Invoice]: ...

@abstractmethod
async def get_secrets_used(
self,
*,
db: Database,
conn: Optional[Connection] = None,
) -> Optional[List[str]]:
...
) -> Optional[List[str]]: ...

@abstractmethod
async def invalidate_proof(
Expand All @@ -50,17 +47,15 @@ async def invalidate_proof(
db: Database,
proof: Proof,
conn: Optional[Connection] = None,
) -> None:
...
) -> None: ...

@abstractmethod
async def get_proofs_pending(
self,
*,
db: Database,
conn: Optional[Connection] = None,
) -> List[Proof]:
...
) -> List[Proof]: ...

@abstractmethod
async def set_proof_pending(
Expand All @@ -69,14 +64,12 @@ async def set_proof_pending(
db: Database,
proof: Proof,
conn: Optional[Connection] = None,
) -> None:
...
) -> None: ...

@abstractmethod
async def unset_proof_pending(
self, *, proof: Proof, db: Database, conn: Optional[Connection] = None
) -> None:
...
) -> None: ...

@abstractmethod
async def store_keyset(
Expand All @@ -85,8 +78,7 @@ async def store_keyset(
db: Database,
keyset: MintKeyset,
conn: Optional[Connection] = None,
) -> None:
...
) -> None: ...

@abstractmethod
async def store_lightning_invoice(
Expand All @@ -95,8 +87,7 @@ async def store_lightning_invoice(
db: Database,
invoice: Invoice,
conn: Optional[Connection] = None,
) -> None:
...
) -> None: ...

@abstractmethod
async def store_promise(
Expand All @@ -110,8 +101,7 @@ async def store_promise(
e: str = "",
s: str = "",
conn: Optional[Connection] = None,
) -> None:
...
) -> None: ...

@abstractmethod
async def get_promise(
Expand All @@ -120,8 +110,7 @@ async def get_promise(
db: Database,
B_: str,
conn: Optional[Connection] = None,
) -> Optional[BlindedSignature]:
...
) -> Optional[BlindedSignature]: ...

@abstractmethod
async def update_lightning_invoice(
Expand All @@ -131,8 +120,7 @@ async def update_lightning_invoice(
id: str,
issued: bool,
conn: Optional[Connection] = None,
) -> None:
...
) -> None: ...


class LedgerCrudSqlite(LedgerCrud):
Expand Down

0 comments on commit 57cb16e

Please sign in to comment.