diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 003b6190..11e75d87 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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: diff --git a/cashu/mint/crud.py b/cashu/mint/crud.py index 8445377c..f1d27a8c 100644 --- a/cashu/mint/crud.py +++ b/cashu/mint/crud.py @@ -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( @@ -31,8 +30,7 @@ async def get_lightning_invoice( db: Database, id: str, conn: Optional[Connection] = None, - ) -> Optional[Invoice]: - ... + ) -> Optional[Invoice]: ... @abstractmethod async def get_secrets_used( @@ -40,8 +38,7 @@ async def get_secrets_used( *, db: Database, conn: Optional[Connection] = None, - ) -> Optional[List[str]]: - ... + ) -> Optional[List[str]]: ... @abstractmethod async def invalidate_proof( @@ -50,8 +47,7 @@ async def invalidate_proof( db: Database, proof: Proof, conn: Optional[Connection] = None, - ) -> None: - ... + ) -> None: ... @abstractmethod async def get_proofs_pending( @@ -59,8 +55,7 @@ async def get_proofs_pending( *, db: Database, conn: Optional[Connection] = None, - ) -> List[Proof]: - ... + ) -> List[Proof]: ... @abstractmethod async def set_proof_pending( @@ -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( @@ -85,8 +78,7 @@ async def store_keyset( db: Database, keyset: MintKeyset, conn: Optional[Connection] = None, - ) -> None: - ... + ) -> None: ... @abstractmethod async def store_lightning_invoice( @@ -95,8 +87,7 @@ async def store_lightning_invoice( db: Database, invoice: Invoice, conn: Optional[Connection] = None, - ) -> None: - ... + ) -> None: ... @abstractmethod async def store_promise( @@ -110,8 +101,7 @@ async def store_promise( e: str = "", s: str = "", conn: Optional[Connection] = None, - ) -> None: - ... + ) -> None: ... @abstractmethod async def get_promise( @@ -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( @@ -131,8 +120,7 @@ async def update_lightning_invoice( id: str, issued: bool, conn: Optional[Connection] = None, - ) -> None: - ... + ) -> None: ... class LedgerCrudSqlite(LedgerCrud):