diff --git a/fs/googledrivefs/googledrivefs.py b/fs/googledrivefs/googledrivefs.py index 9975fb8..25b8073 100644 --- a/fs/googledrivefs/googledrivefs.py +++ b/fs/googledrivefs/googledrivefs.py @@ -73,7 +73,7 @@ def _GenerateChildren(children, page): # TODO - switch to MediaIoBaseUpload and use BytesIO class _UploadOnClose(RawWrapper): - def __init__(self, fs, path, thisMetadata, parentMetadata, parsedMode, **options): # noqa: PLR0913 + def __init__(self, fs, path, thisMetadata, parentMetadata, parsedMode, **options): self.fs = fs self.path = path self.parentMetadata = parentMetadata @@ -169,7 +169,7 @@ def add_shortcut(self, shortcut_path, target_path): fs, targetPathDelegate = self.delegate_path(target_path) fs.add_shortcut(shortcutPathDelegate, targetPathDelegate) - def watch(self, path, notification_address, expiration=None, id=None, token=None): # noqa: A002, PLR0913 + def watch(self, path, notification_address, expiration=None, id=None, token=None): # noqa: A002 fs, delegatePath = self.delegate_path(path) fs.watch(delegatePath, notification_address, expiration, id, token) @@ -227,7 +227,7 @@ def search(self, condition): rawResults = self._fileQuery(condition()) return (_InfoFromMetadata(x) for x in rawResults) - def watch(self, path, notification_address, id, expiration=None, token=None): # noqa: A002, PLR0913 + def watch(self, path, notification_address, id, expiration=None, token=None): # noqa: A002 path = self.validatepath(path) metadataByPath = self._itemsFromPath(path) if path not in metadataByPath: @@ -452,7 +452,7 @@ def _download_to_file(self, path, metadata, file_obj, chunk_size): request = self._drive.files().get_media(fileId=metadata['id']) self._download_request(path, request, file_obj, chunk_size) - def _export_as(self, path, metadata, file_obj, chunk_size, mimeType): # noqa: PLR0913 + def _export_as(self, path, metadata, file_obj, chunk_size, mimeType): assert metadata is not None request = self._drive.files().export_media(fileId=metadata['id'], mimeType=mimeType) self._download_request(path, request, file_obj, chunk_size) diff --git a/fs/googledrivefs/opener.py b/fs/googledrivefs/opener.py index 6ea15de..78257a3 100644 --- a/fs/googledrivefs/opener.py +++ b/fs/googledrivefs/opener.py @@ -13,7 +13,7 @@ class GoogleDriveFSOpener(Opener): protocols: ClassVar[list[str]] = ['googledrive'] - def open_fs(self, fs_url, parse_result, writeable, create, cwd): # noqa: ARG002, PLR0913 + def open_fs(self, fs_url, parse_result, writeable, create, cwd): # noqa: ARG002 directory = parse_result.resource if 'access_token' in parse_result.params: diff --git a/pyproject.toml b/pyproject.toml index b9f9f56..cb34664 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -37,7 +37,7 @@ poethepoet = ">=0.16.4" pyngrok = ">=7" pytest-localserver = ">=0.5.0" pytest-xdist = ">=3.2.1" -ruff = ">=0.4.4" +ruff = ">=0.5.5" pytest-rerunfailures = ">=14.0" [tool.poe.tasks]