From f33f28c5b4e04351745887234a10671f68bb0235 Mon Sep 17 00:00:00 2001 From: Eric Zhang Date: Fri, 26 Jan 2024 21:34:49 +0000 Subject: [PATCH 1/3] Pin black version in CI --- requirements.dev.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.dev.txt b/requirements.dev.txt index c564c03bc..16f8db39f 100644 --- a/requirements.dev.txt +++ b/requirements.dev.txt @@ -1,6 +1,6 @@ # Development requirements -black~=22.3.0 +black==23.11.0 grpcio-tools==1.48.0;python_version<'3.11' # TODO: remove when we drop client support for Protobuf 3.19 grpcio-tools==1.59.2;python_version>='3.11' grpclib==0.4.7 From c1805c91842d10cf1d877bf25f7470ec152544ba Mon Sep 17 00:00:00 2001 From: Eric Zhang Date: Fri, 26 Jan 2024 17:21:48 -0500 Subject: [PATCH 2/3] Fix CI --- .pre-commit-config.yaml | 2 +- modal/volume.py | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 943553910..cc581eb53 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -6,7 +6,7 @@ repos: # Autofix, and respect `exclude` and `extend-exclude` settings. args: [--fix, --exit-non-zero-on-fix] - repo: https://github.com/ambv/black - rev: 22.3.0 + rev: 22.11.0 hooks: - id: black language_version: python3 diff --git a/modal/volume.py b/modal/volume.py index 875c68fae..e8e5524ad 100644 --- a/modal/volume.py +++ b/modal/volume.py @@ -327,7 +327,6 @@ async def __aenter__(self): async def __aexit__(self, exc_type, exc_val, exc_tb): if not exc_val: - # Flatten all the uploads yielded by the upload generators in the batch def gen_upload_providers(): for gen in self._upload_generators: From 26722af440d34b67fb6f623b9098d317a97dfed9 Mon Sep 17 00:00:00 2001 From: Eric Zhang Date: Fri, 26 Jan 2024 17:22:49 -0500 Subject: [PATCH 3/3] Update .pre-commit-config.yaml --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index cc581eb53..372e12630 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -6,7 +6,7 @@ repos: # Autofix, and respect `exclude` and `extend-exclude` settings. args: [--fix, --exit-non-zero-on-fix] - repo: https://github.com/ambv/black - rev: 22.11.0 + rev: 23.11.0 hooks: - id: black language_version: python3