From b27e3ed61ce103616a887e45879c53963b3185d7 Mon Sep 17 00:00:00 2001 From: Ivan Shcheklein Date: Fri, 31 Mar 2023 10:15:30 -0700 Subject: [PATCH] chore(pre-commit): bump linter versions --- .pre-commit-config.yaml | 4 ++-- pydrive2/fs/spec.py | 1 - pydrive2/test/test_fs.py | 1 - tox.ini | 9 ++++++--- 4 files changed, 8 insertions(+), 7 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 7d418ee9..71bad2f0 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -3,9 +3,9 @@ repos: - id: black language_version: python3 repo: https://github.com/psf/black - rev: 22.12.0 + rev: 23.3.0 - hooks: - id: flake8 language_version: python3 repo: https://github.com/PyCQA/flake8 - rev: 5.0.4 + rev: 6.0.0 diff --git a/pydrive2/fs/spec.py b/pydrive2/fs/spec.py index 731cbbab..75ed49be 100644 --- a/pydrive2/fs/spec.py +++ b/pydrive2/fs/spec.py @@ -545,7 +545,6 @@ def cp_file(self, lpath, rpath, **kwargs): @_gdrive_retry def mv(self, path1, path2, maxdepth=None, **kwargs): - if maxdepth is not None: raise NotImplementedError("Max depth move is not supported") diff --git a/pydrive2/test/test_fs.py b/pydrive2/test/test_fs.py index 14e078e9..cc1c4faa 100644 --- a/pydrive2/test/test_fs.py +++ b/pydrive2/test/test_fs.py @@ -203,7 +203,6 @@ def read_random_file(name): return stream.read() with futures.ThreadPoolExecutor() as executor: - write_futures, _ = futures.wait( [executor.submit(create_random_file) for _ in range(64)], return_when=futures.ALL_COMPLETED, diff --git a/tox.ini b/tox.ini index ad6aac9c..788776e5 100644 --- a/tox.ini +++ b/tox.ini @@ -15,8 +15,11 @@ commands = [flake8] ignore = - E203, # Whitespace before ':' - E266, # Too many leading '#' for block comment - W503, # Line break occurred before a binary operator + # Whitespace before ':' + E203, + # Too many leading '#' for block comment + E266, + # Line break occurred before a binary operator + W503 max-line-length = 89 select = B,C,E,F,W,T4,B9