mirror of
https://github.com/mealie-recipes/mealie.git
synced 2026-01-29 03:53:12 -05:00
fix: Upgrade Black (#3057)
* bump black * bump black on precommit * run black * fix backend test runner
This commit is contained in:
@@ -7,11 +7,9 @@ from mealie.core.config import get_app_settings
|
||||
|
||||
|
||||
class Hasher(Protocol):
|
||||
def hash(self, password: str) -> str:
|
||||
...
|
||||
def hash(self, password: str) -> str: ...
|
||||
|
||||
def verify(self, password: str, hashed: str) -> bool:
|
||||
...
|
||||
def verify(self, password: str, hashed: str) -> bool: ...
|
||||
|
||||
|
||||
class FakeHasher:
|
||||
|
||||
@@ -18,8 +18,7 @@ ALGORITHM = "HS256"
|
||||
logger = root_logger.get_logger("security")
|
||||
|
||||
|
||||
class UserLockedOut(Exception):
|
||||
...
|
||||
class UserLockedOut(Exception): ...
|
||||
|
||||
|
||||
def create_access_token(data: dict, expires_delta: timedelta | None = None) -> str:
|
||||
|
||||
@@ -7,13 +7,11 @@ from pydantic import BaseModel, BaseSettings, PostgresDsn
|
||||
class AbstractDBProvider(ABC):
|
||||
@property
|
||||
@abstractmethod
|
||||
def db_url(self) -> str:
|
||||
...
|
||||
def db_url(self) -> str: ...
|
||||
|
||||
@property
|
||||
@abstractmethod
|
||||
def db_url_public(self) -> str:
|
||||
...
|
||||
def db_url_public(self) -> str: ...
|
||||
|
||||
|
||||
class SQLiteProvider(AbstractDBProvider, BaseModel):
|
||||
|
||||
Reference in New Issue
Block a user