From 318c3094bca17f40b2b4b4ed7c6d2b78d5a9671e Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 20 Mar 2024 17:43:24 +0000 Subject: [PATCH 1/2] Bump black from 23.12.1 to 24.3.0 Bumps [black](https://github.com/psf/black) from 23.12.1 to 24.3.0. - [Release notes](https://github.com/psf/black/releases) - [Changelog](https://github.com/psf/black/blob/main/CHANGES.md) - [Commits](https://github.com/psf/black/compare/23.12.1...24.3.0) --- updated-dependencies: - dependency-name: black dependency-type: direct:development ... Signed-off-by: dependabot[bot] --- poetry.lock | 50 +++++++++++++++++++++++++------------------------- pyproject.toml | 2 +- 2 files changed, 26 insertions(+), 26 deletions(-) diff --git a/poetry.lock b/poetry.lock index 5958a6b..d35403d 100644 --- a/poetry.lock +++ b/poetry.lock @@ -1,4 +1,4 @@ -# This file is automatically @generated by Poetry 1.8.1 and should not be changed by hand. +# This file is automatically @generated by Poetry 1.7.1 and should not be changed by hand. [[package]] name = "annotated-types" @@ -52,33 +52,33 @@ tests-no-zope = ["attrs[tests-mypy]", "cloudpickle", "hypothesis", "pympler", "p [[package]] name = "black" -version = "23.12.1" +version = "24.3.0" description = "The uncompromising code formatter." optional = false python-versions = ">=3.8" files = [ - {file = "black-23.12.1-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:e0aaf6041986767a5e0ce663c7a2f0e9eaf21e6ff87a5f95cbf3675bfd4c41d2"}, - {file = "black-23.12.1-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:c88b3711d12905b74206227109272673edce0cb29f27e1385f33b0163c414bba"}, - {file = "black-23.12.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:a920b569dc6b3472513ba6ddea21f440d4b4c699494d2e972a1753cdc25df7b0"}, - {file = "black-23.12.1-cp310-cp310-win_amd64.whl", hash = "sha256:3fa4be75ef2a6b96ea8d92b1587dd8cb3a35c7e3d51f0738ced0781c3aa3a5a3"}, - {file = "black-23.12.1-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:8d4df77958a622f9b5a4c96edb4b8c0034f8434032ab11077ec6c56ae9f384ba"}, - {file = "black-23.12.1-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:602cfb1196dc692424c70b6507593a2b29aac0547c1be9a1d1365f0d964c353b"}, - {file = "black-23.12.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:9c4352800f14be5b4864016882cdba10755bd50805c95f728011bcb47a4afd59"}, - {file = "black-23.12.1-cp311-cp311-win_amd64.whl", hash = "sha256:0808494f2b2df923ffc5723ed3c7b096bd76341f6213989759287611e9837d50"}, - {file = "black-23.12.1-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:25e57fd232a6d6ff3f4478a6fd0580838e47c93c83eaf1ccc92d4faf27112c4e"}, - {file = "black-23.12.1-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:2d9e13db441c509a3763a7a3d9a49ccc1b4e974a47be4e08ade2a228876500ec"}, - {file = "black-23.12.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:6d1bd9c210f8b109b1762ec9fd36592fdd528485aadb3f5849b2740ef17e674e"}, - {file = "black-23.12.1-cp312-cp312-win_amd64.whl", hash = "sha256:ae76c22bde5cbb6bfd211ec343ded2163bba7883c7bc77f6b756a1049436fbb9"}, - {file = "black-23.12.1-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:1fa88a0f74e50e4487477bc0bb900c6781dbddfdfa32691e780bf854c3b4a47f"}, - {file = "black-23.12.1-cp38-cp38-macosx_11_0_arm64.whl", hash = "sha256:a4d6a9668e45ad99d2f8ec70d5c8c04ef4f32f648ef39048d010b0689832ec6d"}, - {file = "black-23.12.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:b18fb2ae6c4bb63eebe5be6bd869ba2f14fd0259bda7d18a46b764d8fb86298a"}, - {file = "black-23.12.1-cp38-cp38-win_amd64.whl", hash = "sha256:c04b6d9d20e9c13f43eee8ea87d44156b8505ca8a3c878773f68b4e4812a421e"}, - {file = "black-23.12.1-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:3e1b38b3135fd4c025c28c55ddfc236b05af657828a8a6abe5deec419a0b7055"}, - {file = "black-23.12.1-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:4f0031eaa7b921db76decd73636ef3a12c942ed367d8c3841a0739412b260a54"}, - {file = "black-23.12.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:97e56155c6b737854e60a9ab1c598ff2533d57e7506d97af5481141671abf3ea"}, - {file = "black-23.12.1-cp39-cp39-win_amd64.whl", hash = "sha256:dd15245c8b68fe2b6bd0f32c1556509d11bb33aec9b5d0866dd8e2ed3dba09c2"}, - {file = "black-23.12.1-py3-none-any.whl", hash = "sha256:78baad24af0f033958cad29731e27363183e140962595def56423e626f4bee3e"}, - {file = "black-23.12.1.tar.gz", hash = "sha256:4ce3ef14ebe8d9509188014d96af1c456a910d5b5cbf434a09fef7e024b3d0d5"}, + {file = "black-24.3.0-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:7d5e026f8da0322b5662fa7a8e752b3fa2dac1c1cbc213c3d7ff9bdd0ab12395"}, + {file = "black-24.3.0-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:9f50ea1132e2189d8dff0115ab75b65590a3e97de1e143795adb4ce317934995"}, + {file = "black-24.3.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:e2af80566f43c85f5797365077fb64a393861a3730bd110971ab7a0c94e873e7"}, + {file = "black-24.3.0-cp310-cp310-win_amd64.whl", hash = "sha256:4be5bb28e090456adfc1255e03967fb67ca846a03be7aadf6249096100ee32d0"}, + {file = "black-24.3.0-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:4f1373a7808a8f135b774039f61d59e4be7eb56b2513d3d2f02a8b9365b8a8a9"}, + {file = "black-24.3.0-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:aadf7a02d947936ee418777e0247ea114f78aff0d0959461057cae8a04f20597"}, + {file = "black-24.3.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:65c02e4ea2ae09d16314d30912a58ada9a5c4fdfedf9512d23326128ac08ac3d"}, + {file = "black-24.3.0-cp311-cp311-win_amd64.whl", hash = "sha256:bf21b7b230718a5f08bd32d5e4f1db7fc8788345c8aea1d155fc17852b3410f5"}, + {file = "black-24.3.0-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:2818cf72dfd5d289e48f37ccfa08b460bf469e67fb7c4abb07edc2e9f16fb63f"}, + {file = "black-24.3.0-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:4acf672def7eb1725f41f38bf6bf425c8237248bb0804faa3965c036f7672d11"}, + {file = "black-24.3.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:c7ed6668cbbfcd231fa0dc1b137d3e40c04c7f786e626b405c62bcd5db5857e4"}, + {file = "black-24.3.0-cp312-cp312-win_amd64.whl", hash = "sha256:56f52cfbd3dabe2798d76dbdd299faa046a901041faf2cf33288bc4e6dae57b5"}, + {file = "black-24.3.0-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:79dcf34b33e38ed1b17434693763301d7ccbd1c5860674a8f871bd15139e7837"}, + {file = "black-24.3.0-cp38-cp38-macosx_11_0_arm64.whl", hash = "sha256:e19cb1c6365fd6dc38a6eae2dcb691d7d83935c10215aef8e6c38edee3f77abd"}, + {file = "black-24.3.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:65b76c275e4c1c5ce6e9870911384bff5ca31ab63d19c76811cb1fb162678213"}, + {file = "black-24.3.0-cp38-cp38-win_amd64.whl", hash = "sha256:b5991d523eee14756f3c8d5df5231550ae8993e2286b8014e2fdea7156ed0959"}, + {file = "black-24.3.0-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:c45f8dff244b3c431b36e3224b6be4a127c6aca780853574c00faf99258041eb"}, + {file = "black-24.3.0-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:6905238a754ceb7788a73f02b45637d820b2f5478b20fec82ea865e4f5d4d9f7"}, + {file = "black-24.3.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:d7de8d330763c66663661a1ffd432274a2f92f07feeddd89ffd085b5744f85e7"}, + {file = "black-24.3.0-cp39-cp39-win_amd64.whl", hash = "sha256:7bb041dca0d784697af4646d3b62ba4a6b028276ae878e53f6b4f74ddd6db99f"}, + {file = "black-24.3.0-py3-none-any.whl", hash = "sha256:41622020d7120e01d377f74249e677039d20e6344ff5851de8a10f11f513bf93"}, + {file = "black-24.3.0.tar.gz", hash = "sha256:a0c9c4a0771afc6919578cec71ce82a3e31e054904e7197deacbc9382671c41f"}, ] [package.dependencies] @@ -1269,4 +1269,4 @@ zstd = ["zstandard (>=0.18.0)"] [metadata] lock-version = "2.0" python-versions = "~3.11" -content-hash = "e15bd0cbe24bb0aee4ec479ad1ea34b7ebba794ada5943033218168b7e3cbda3" +content-hash = "8c58eabf5eece939918719e870add2ab2186001a2d025dd7e7b1f5bee4ac262d" diff --git a/pyproject.toml b/pyproject.toml index 8f02b40..630b850 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -34,7 +34,7 @@ boto3-stubs = {extras = ["s3"], version = "^1.34.3"} [tool.poetry.group.dev.dependencies] pysen = "^0.10.5" -black = "^23.12.0" +black = "^24.3.0" isort = "^5.13.2" flake8 = "^6.1.0" flake8-bugbear = "^23.12.2" From 463906db4f28929d12e9b744b871a19f7e243690 Mon Sep 17 00:00:00 2001 From: aoirint Date: Sat, 23 Mar 2024 23:16:40 +0900 Subject: [PATCH 2/2] poetry run format --- .../live_inbox_api/niconico_live_program_manager/base.py | 3 +-- .../niconico_live_program_manager/hasura.py | 4 +++- .../niconico_user_icon_cache_metadata_manager/base.py | 6 ++---- .../niconico_user_icon_cache_metadata_manager/hasura.py | 6 +++--- .../niconico_user_icon_cache_storage_manager/base.py | 6 ++---- .../live_inbox_api/niconico_user_manager/base.py | 9 +++------ .../niconico_user_broadcast_history_client/base.py | 3 +-- .../niconico_api/niconico_user_client/base.py | 3 +-- .../niconico_api/niconico_user_icon_client/base.py | 3 +-- 9 files changed, 17 insertions(+), 26 deletions(-) diff --git a/live_inbox_updater/live_inbox_api/niconico_live_program_manager/base.py b/live_inbox_updater/live_inbox_api/niconico_live_program_manager/base.py index 285a05e..114ccdb 100644 --- a/live_inbox_updater/live_inbox_api/niconico_live_program_manager/base.py +++ b/live_inbox_updater/live_inbox_api/niconico_live_program_manager/base.py @@ -20,5 +20,4 @@ class LiveInboxApiNiconicoLiveProgramManager(ABC): def upsert_all( self, upsert_objects: Iterable[LiveInboxApiNiconicoLiveProgramUpsertObject], - ) -> None: - ... + ) -> None: ... diff --git a/live_inbox_updater/live_inbox_api/niconico_live_program_manager/hasura.py b/live_inbox_updater/live_inbox_api/niconico_live_program_manager/hasura.py index 394d008..a552163 100644 --- a/live_inbox_updater/live_inbox_api/niconico_live_program_manager/hasura.py +++ b/live_inbox_updater/live_inbox_api/niconico_live_program_manager/hasura.py @@ -18,7 +18,9 @@ class UpsertNiconicoLiveProgramsResponseInsertNiconicoLivePrograms(BaseModel): class UpsertNiconicoLiveProgramsResponseData(BaseModel): - insert_niconico_live_programs: UpsertNiconicoLiveProgramsResponseInsertNiconicoLivePrograms + insert_niconico_live_programs: ( + UpsertNiconicoLiveProgramsResponseInsertNiconicoLivePrograms + ) class UpsertNiconicoLiveProgramsResponseBody(BaseModel): diff --git a/live_inbox_updater/live_inbox_api/niconico_user_icon_cache_metadata_manager/base.py b/live_inbox_updater/live_inbox_api/niconico_user_icon_cache_metadata_manager/base.py index d09cf1a..b518027 100644 --- a/live_inbox_updater/live_inbox_api/niconico_user_icon_cache_metadata_manager/base.py +++ b/live_inbox_updater/live_inbox_api/niconico_user_icon_cache_metadata_manager/base.py @@ -19,8 +19,7 @@ class LiveInboxApiNiconicoUserIconCacheMetadataManager(ABC): def get_by_urls( self, urls: Iterable[str], - ) -> list[LiveInboxApiNiconicoUserIconCacheMetadata]: - ... + ) -> list[LiveInboxApiNiconicoUserIconCacheMetadata]: ... @abstractmethod def save( @@ -31,5 +30,4 @@ def save( hash_md5: str, content_type: str, file_key: str, - ) -> None: - ... + ) -> None: ... diff --git a/live_inbox_updater/live_inbox_api/niconico_user_icon_cache_metadata_manager/hasura.py b/live_inbox_updater/live_inbox_api/niconico_user_icon_cache_metadata_manager/hasura.py index 9309629..b6b3761 100644 --- a/live_inbox_updater/live_inbox_api/niconico_user_icon_cache_metadata_manager/hasura.py +++ b/live_inbox_updater/live_inbox_api/niconico_user_icon_cache_metadata_manager/hasura.py @@ -29,9 +29,9 @@ class GetNiconicoUserIconCacheByUrlsResponseNiconicoUserIconCache(BaseModel): class GetNiconicoUserIconCacheByUrlsResponseData(BaseModel): - niconico_user_icon_caches: ( - list[GetNiconicoUserIconCacheByUrlsResponseNiconicoUserIconCache] - ) + niconico_user_icon_caches: list[ + GetNiconicoUserIconCacheByUrlsResponseNiconicoUserIconCache + ] class GetNiconicoUserIconCacheByUrlsResponseBody(BaseModel): diff --git a/live_inbox_updater/live_inbox_api/niconico_user_icon_cache_storage_manager/base.py b/live_inbox_updater/live_inbox_api/niconico_user_icon_cache_storage_manager/base.py index 5fa0c5b..57e91dd 100644 --- a/live_inbox_updater/live_inbox_api/niconico_user_icon_cache_storage_manager/base.py +++ b/live_inbox_updater/live_inbox_api/niconico_user_icon_cache_storage_manager/base.py @@ -7,8 +7,7 @@ def check_exists( self, file_key: str, content_type: str, - ) -> bool: - ... + ) -> bool: ... @abstractmethod def save( @@ -16,5 +15,4 @@ def save( file_key: str, content_type: str, content: bytes, - ) -> None: - ... + ) -> None: ... diff --git a/live_inbox_updater/live_inbox_api/niconico_user_manager/base.py b/live_inbox_updater/live_inbox_api/niconico_user_manager/base.py index da5efb7..23d7305 100644 --- a/live_inbox_updater/live_inbox_api/niconico_user_manager/base.py +++ b/live_inbox_updater/live_inbox_api/niconico_user_manager/base.py @@ -27,19 +27,16 @@ class LiveInboxApiNiconicoUserManager(ABC): @abstractmethod def get_all( self, - ) -> list[LiveInboxApiNiconicoUser]: - ... + ) -> list[LiveInboxApiNiconicoUser]: ... @abstractmethod def create_users( self, create_objects: Iterable[LiveInboxApiNiconicoUserCreateObject], - ) -> None: - ... + ) -> None: ... @abstractmethod def bulk_update_user_enabled( self, update_objects: Iterable[LiveInboxApiNiconicoUserEnabledUpdateObject], - ) -> None: - ... + ) -> None: ... diff --git a/live_inbox_updater/niconico_api/niconico_user_broadcast_history_client/base.py b/live_inbox_updater/niconico_api/niconico_user_broadcast_history_client/base.py index 7ade321..0dd5324 100644 --- a/live_inbox_updater/niconico_api/niconico_user_broadcast_history_client/base.py +++ b/live_inbox_updater/niconico_api/niconico_user_broadcast_history_client/base.py @@ -21,5 +21,4 @@ def get_programs( niconico_user_id: str, offset: int = 0, limit: int = 10, - ) -> list[NiconicoApiNiconicoUserBroadcastProgram]: - ... + ) -> list[NiconicoApiNiconicoUserBroadcastProgram]: ... diff --git a/live_inbox_updater/niconico_api/niconico_user_client/base.py b/live_inbox_updater/niconico_api/niconico_user_client/base.py index c943139..31b1a39 100644 --- a/live_inbox_updater/niconico_api/niconico_user_client/base.py +++ b/live_inbox_updater/niconico_api/niconico_user_client/base.py @@ -15,5 +15,4 @@ class NiconicoApiNiconicoUserClient(ABC): def get_all( self, remote_niconico_user_ids: Iterable[str], - ) -> Iterable[NiconicoApiNiconicoUser]: - ... + ) -> Iterable[NiconicoApiNiconicoUser]: ... diff --git a/live_inbox_updater/niconico_api/niconico_user_icon_client/base.py b/live_inbox_updater/niconico_api/niconico_user_icon_client/base.py index 7fc1f80..bdecec3 100644 --- a/live_inbox_updater/niconico_api/niconico_user_icon_client/base.py +++ b/live_inbox_updater/niconico_api/niconico_user_icon_client/base.py @@ -14,5 +14,4 @@ class NiconicoApiNiconicoUserIconClient(ABC): def get( self, url: str, - ) -> NiconicoApiNiconicoUserIcon: - ... + ) -> NiconicoApiNiconicoUserIcon: ...