diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 8f41dc4..7478639 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -2,7 +2,7 @@ # See https://pre-commit.com/hooks.html for more hooks repos: - repo: https://github.com/psf/black - rev: 20.8b1 + rev: 22.3.0 hooks: - id: black - repo: https://github.com/pre-commit/mirrors-isort diff --git a/setup.cfg b/setup.cfg index 6ebd622..3b92c76 100644 --- a/setup.cfg +++ b/setup.cfg @@ -16,7 +16,7 @@ classifiers = [options] install_requires = fsspec>=2021.8.1 - asyncssh>=2.7.1,<3 + asyncssh>=2.11.0,<3 packages = find: [options.extras_require] diff --git a/sshfs/utils.py b/sshfs/utils.py index 47b0c77..fb2b02d 100644 --- a/sshfs/utils.py +++ b/sshfs/utils.py @@ -11,7 +11,7 @@ _FILE_EXISTS = os.strerror(errno.EEXIST) # A copy of SFTP_BLOCK_SIZE (16KB) -BASE_BLOCK_SIZE = 2 ** 14 +BASE_BLOCK_SIZE = 2**14 # Most of the SFTP implementations support reading a 64kb # and writing a 256kb chunk at a single request. We'll set