Skip to content

Commit

Permalink
lint: ruff apparently allows 5 arguments now
Browse files Browse the repository at this point in the history
  • Loading branch information
rkhwaja committed Jul 26, 2024
1 parent 022d884 commit a8dacfd
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions fs/googledrivefs/googledrivefs.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)

Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion fs/googledrivefs/opener.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit a8dacfd

Please sign in to comment.