M dlrepo/fs/__init__.py => dlrepo/fs/__init__.py +1 -6
@@ 255,7 255,7 @@ class ArtifactRepository(AbstractRepository):
return path
def rmtree(self, path: Path):
- shutil.rmtree(path, onerror=_rmtree_error_cb)
+ shutil.rmtree(path, ignore_errors=True)
async def update_upload(
self, uuid: str, stream: Callable[[int], Awaitable[bytes]]
@@ 386,11 386,6 @@ class UserRepository(AbstractRepository):
# --------------------------------------------------------------------------------------
-def _rmtree_error_cb(func, path, exc_info):
- # nothing much we can do here, simply log a message
- LOG.error("%s(%r) failed:", func, path, exc_info=exc_info)
-
-
async def _stream_to_file(
stream: Callable[[int], Awaitable[bytes]],
path: Path,
M pylintrc => pylintrc +2 -0
@@ 20,6 20,8 @@ disable=
suppressed-message,
unnecessary-pass,
unused-argument,
+ use-implicit-booleaness-not-comparison-to-string,
+ use-implicit-booleaness-not-comparison-to-zero,
wrong-import-order,
[REPORTS]
M requirements-dev.txt => requirements-dev.txt +30 -29
@@ 1,35 1,36 @@
-aiohttp==3.8.3
-aiohttp-jinja2==1.5.1
+aiohttp==3.9.1
+aiohttp-jinja2==1.6
aiosignal==1.3.1
-astroid==2.14.1
-async-timeout==4.0.2
-attrs==22.2.0
-black==23.1.0
-bonsai==1.5.1
-cachetools==5.3.0
-charset-normalizer==2.1.1
-click==8.1.3
-dill==0.3.6
-flake8==6.0.0
-frozenlist==1.3.3
-idna==3.4
+astroid==3.0.2
+async-timeout==4.0.3
+attrs==23.1.0
+black==23.12.0
+bonsai==1.5.2
+cachetools==5.3.2
+charset-normalizer==3.3.2
+click==8.1.7
+dill==0.3.7
+flake8==6.1.0
+frozenlist==1.4.1
+idna==3.6
iniconfig==2.0.0
-isort==5.12.0
+isort==5.13.2
Jinja2==3.1.2
-lazy-object-proxy==1.9.0
-MarkupSafe==2.1.2
+lazy-object-proxy==1.10.0
+MarkupSafe==2.1.3
mccabe==0.7.0
multidict==6.0.4
mypy-extensions==1.0.0
-packaging==23.0
-pathspec==0.11.0
-platformdirs==3.0.0
-pluggy==1.0.0
-pycodestyle==2.10.0
-pyflakes==3.0.1
-pylint==2.16.1
-pytest==7.2.1
-pytest-asyncio==0.20.3
-tomlkit==0.11.6
-wrapt==1.14.1
-yarl==1.8.2
+packaging==23.2
+pathspec==0.12.1
+platformdirs==4.1.0
+pluggy==1.3.0
+pycodestyle==2.11.1
+pyflakes==3.1.0
+pylint==3.0.3
+pytest==7.4.3
+pytest-asyncio==0.23.2
+setuptools==69.0.2
+tomlkit==0.12.3
+wrapt==1.16.0
+yarl==1.9.4