Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lint: ruff apparently allows 5 arguments now #89

Merged
merged 1 commit into from
Jul 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading