diff --git a/fastapi_storages/base.py b/fastapi_storages/base.py index d228c5b..673cd8d 100644 --- a/fastapi_storages/base.py +++ b/fastapi_storages/base.py @@ -7,22 +7,22 @@ class BaseStorage: # pragma: no cover if the name is the same or add a suffix to the filename.""" def get_name(self, name: str) -> str: - ... + raise NotImplementedError() def get_path(self, name: str) -> str: - ... + raise NotImplementedError() def get_size(self, name: str) -> int: - ... + raise NotImplementedError() def open(self, name: str) -> BinaryIO: - ... + raise NotImplementedError() def write(self, file: BinaryIO, name: str) -> str: - ... + raise NotImplementedError() def generate_new_filename(self, filename: str) -> str: - ... + raise NotImplementedError() class StorageFile(str): diff --git a/pyproject.toml b/pyproject.toml index 095ddb6..324e098 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -60,22 +60,21 @@ exclude = [ [tool.hatch.envs.default] dependencies = [ - "black==22.10.0", - "build==0.9.0", - "coverage==6.5.0", - "moto==4.1.2", - "mypy==0.982", + "build==1.0.3", + "coverage==7.3.3", + "moto==4.2.11", + "mypy==1.7.1", "peewee>=3", - "Pillow==9.4.0", - "pytest==7.2.0", - "ruff==0.0.237", + "Pillow==10.1.0", + "pytest==7.4.3", + "ruff==0.1.8", "sqlalchemy>=1.4", ] [tool.hatch.envs.default.scripts] check = [ "ruff .", - "black --check .", + "ruff format --check .", "mypy fastapi_storages", ] cov = [ @@ -83,16 +82,16 @@ cov = [ "coverage xml", ] format = [ - "black .", + "ruff format .", "ruff --fix .", ] test = "coverage run -m pytest {args}" [tool.hatch.envs.docs] dependencies = [ - "mkdocs-material==9.1.18", - "mkdocs==1.4.3", - "mkdocstrings[python]==0.22.0", + "mkdocs-material==9.5.2", + "mkdocs==1.5.3", + "mkdocstrings[python]==0.24.0", ] [tool.hatch.envs.docs.scripts]