From c940b03d7224a6324afff2c2347a044da03deef1 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 28 Jan 2025 15:49:43 +0000 Subject: [PATCH] Bump ruff from 0.8.4 to 0.9.3 (#50) --- poetry.lock | 40 +++++++++++----------- poetry_monoranger_plugin/lock_modifier.py | 6 ++-- poetry_monoranger_plugin/monorepo_adder.py | 12 +++---- poetry_monoranger_plugin/path_rewriter.py | 6 ++-- poetry_monoranger_plugin/venv_modifier.py | 6 ++-- pyproject.toml | 2 +- 6 files changed, 36 insertions(+), 36 deletions(-) diff --git a/poetry.lock b/poetry.lock index 1086b64..4f70b94 100644 --- a/poetry.lock +++ b/poetry.lock @@ -1389,29 +1389,29 @@ files = [ [[package]] name = "ruff" -version = "0.8.6" +version = "0.9.3" description = "An extremely fast Python linter and code formatter, written in Rust." optional = false python-versions = ">=3.7" files = [ - {file = "ruff-0.8.6-py3-none-linux_armv6l.whl", hash = "sha256:defed167955d42c68b407e8f2e6f56ba52520e790aba4ca707a9c88619e580e3"}, - {file = "ruff-0.8.6-py3-none-macosx_10_12_x86_64.whl", hash = "sha256:54799ca3d67ae5e0b7a7ac234baa657a9c1784b48ec954a094da7c206e0365b1"}, - {file = "ruff-0.8.6-py3-none-macosx_11_0_arm64.whl", hash = "sha256:e88b8f6d901477c41559ba540beeb5a671e14cd29ebd5683903572f4b40a9807"}, - {file = "ruff-0.8.6-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:0509e8da430228236a18a677fcdb0c1f102dd26d5520f71f79b094963322ed25"}, - {file = "ruff-0.8.6-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:91a7ddb221779871cf226100e677b5ea38c2d54e9e2c8ed847450ebbdf99b32d"}, - {file = "ruff-0.8.6-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:248b1fb3f739d01d528cc50b35ee9c4812aa58cc5935998e776bf8ed5b251e75"}, - {file = "ruff-0.8.6-py3-none-manylinux_2_17_ppc64.manylinux2014_ppc64.whl", hash = "sha256:bc3c083c50390cf69e7e1b5a5a7303898966be973664ec0c4a4acea82c1d4315"}, - {file = "ruff-0.8.6-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:52d587092ab8df308635762386f45f4638badb0866355b2b86760f6d3c076188"}, - {file = "ruff-0.8.6-py3-none-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:61323159cf21bc3897674e5adb27cd9e7700bab6b84de40d7be28c3d46dc67cf"}, - {file = "ruff-0.8.6-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:7ae4478b1471fc0c44ed52a6fb787e641a2ac58b1c1f91763bafbc2faddc5117"}, - {file = "ruff-0.8.6-py3-none-musllinux_1_2_aarch64.whl", hash = "sha256:0c000a471d519b3e6cfc9c6680025d923b4ca140ce3e4612d1a2ef58e11f11fe"}, - {file = "ruff-0.8.6-py3-none-musllinux_1_2_armv7l.whl", hash = "sha256:9257aa841e9e8d9b727423086f0fa9a86b6b420fbf4bf9e1465d1250ce8e4d8d"}, - {file = "ruff-0.8.6-py3-none-musllinux_1_2_i686.whl", hash = "sha256:45a56f61b24682f6f6709636949ae8cc82ae229d8d773b4c76c09ec83964a95a"}, - {file = "ruff-0.8.6-py3-none-musllinux_1_2_x86_64.whl", hash = "sha256:496dd38a53aa173481a7d8866bcd6451bd934d06976a2505028a50583e001b76"}, - {file = "ruff-0.8.6-py3-none-win32.whl", hash = "sha256:e169ea1b9eae61c99b257dc83b9ee6c76f89042752cb2d83486a7d6e48e8f764"}, - {file = "ruff-0.8.6-py3-none-win_amd64.whl", hash = "sha256:f1d70bef3d16fdc897ee290d7d20da3cbe4e26349f62e8a0274e7a3f4ce7a905"}, - {file = "ruff-0.8.6-py3-none-win_arm64.whl", hash = "sha256:7d7fc2377a04b6e04ffe588caad613d0c460eb2ecba4c0ccbbfe2bc973cbc162"}, - {file = "ruff-0.8.6.tar.gz", hash = "sha256:dcad24b81b62650b0eb8814f576fc65cfee8674772a6e24c9b747911801eeaa5"}, + {file = "ruff-0.9.3-py3-none-linux_armv6l.whl", hash = "sha256:7f39b879064c7d9670197d91124a75d118d00b0990586549949aae80cdc16624"}, + {file = "ruff-0.9.3-py3-none-macosx_10_12_x86_64.whl", hash = "sha256:a187171e7c09efa4b4cc30ee5d0d55a8d6c5311b3e1b74ac5cb96cc89bafc43c"}, + {file = "ruff-0.9.3-py3-none-macosx_11_0_arm64.whl", hash = "sha256:c59ab92f8e92d6725b7ded9d4a31be3ef42688a115c6d3da9457a5bda140e2b4"}, + {file = "ruff-0.9.3-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:2dc153c25e715be41bb228bc651c1e9b1a88d5c6e5ed0194fa0dfea02b026439"}, + {file = "ruff-0.9.3-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:646909a1e25e0dc28fbc529eab8eb7bb583079628e8cbe738192853dbbe43af5"}, + {file = "ruff-0.9.3-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:5a5a46e09355695fbdbb30ed9889d6cf1c61b77b700a9fafc21b41f097bfbba4"}, + {file = "ruff-0.9.3-py3-none-manylinux_2_17_ppc64.manylinux2014_ppc64.whl", hash = "sha256:c4bb09d2bbb394e3730d0918c00276e79b2de70ec2a5231cd4ebb51a57df9ba1"}, + {file = "ruff-0.9.3-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:96a87ec31dc1044d8c2da2ebbed1c456d9b561e7d087734336518181b26b3aa5"}, + {file = "ruff-0.9.3-py3-none-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:9bb7554aca6f842645022fe2d301c264e6925baa708b392867b7a62645304df4"}, + {file = "ruff-0.9.3-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:cabc332b7075a914ecea912cd1f3d4370489c8018f2c945a30bcc934e3bc06a6"}, + {file = "ruff-0.9.3-py3-none-musllinux_1_2_aarch64.whl", hash = "sha256:33866c3cc2a575cbd546f2cd02bdd466fed65118e4365ee538a3deffd6fcb730"}, + {file = "ruff-0.9.3-py3-none-musllinux_1_2_armv7l.whl", hash = "sha256:006e5de2621304c8810bcd2ee101587712fa93b4f955ed0985907a36c427e0c2"}, + {file = "ruff-0.9.3-py3-none-musllinux_1_2_i686.whl", hash = "sha256:ba6eea4459dbd6b1be4e6bfc766079fb9b8dd2e5a35aff6baee4d9b1514ea519"}, + {file = "ruff-0.9.3-py3-none-musllinux_1_2_x86_64.whl", hash = "sha256:90230a6b8055ad47d3325e9ee8f8a9ae7e273078a66401ac66df68943ced029b"}, + {file = "ruff-0.9.3-py3-none-win32.whl", hash = "sha256:eabe5eb2c19a42f4808c03b82bd313fc84d4e395133fb3fc1b1516170a31213c"}, + {file = "ruff-0.9.3-py3-none-win_amd64.whl", hash = "sha256:040ceb7f20791dfa0e78b4230ee9dce23da3b64dd5848e40e3bf3ab76468dcf4"}, + {file = "ruff-0.9.3-py3-none-win_arm64.whl", hash = "sha256:800d773f6d4d33b0a3c60e2c6ae8f4c202ea2de056365acfa519aa48acf28e0b"}, + {file = "ruff-0.9.3.tar.gz", hash = "sha256:8293f89985a090ebc3ed1064df31f3b4b56320cdfcec8b60d3295bddb955c22a"}, ] [[package]] @@ -1658,4 +1658,4 @@ type = ["pytest-mypy"] [metadata] lock-version = "2.0" python-versions = "^3.9" -content-hash = "2e89e5292368692d810461924890e823d92d0397b60e1348773675752467f5f9" +content-hash = "62ca72426d39d5230319e9e1afd0c7ee2d0801e061347cda8a9f8a909dea1567" diff --git a/poetry_monoranger_plugin/lock_modifier.py b/poetry_monoranger_plugin/lock_modifier.py index 6a41da9..b6bee38 100644 --- a/poetry_monoranger_plugin/lock_modifier.py +++ b/poetry_monoranger_plugin/lock_modifier.py @@ -43,9 +43,9 @@ def execute(self, event: ConsoleCommandEvent): event (ConsoleCommandEvent): The triggering event. """ command = event.command - assert isinstance( - command, (LockCommand, InstallCommand, UpdateCommand) - ), f"{self.__class__.__name__} can only be used for `poetry lock`, `poetry install`, and `poetry update` commands" + assert isinstance(command, (LockCommand, InstallCommand, UpdateCommand)), ( + f"{self.__class__.__name__} can only be used for `poetry lock`, `poetry install`, and `poetry update` commands" + ) io = event.io io.write_line("Running command from monorepo root directory") diff --git a/poetry_monoranger_plugin/monorepo_adder.py b/poetry_monoranger_plugin/monorepo_adder.py index f41d65c..4a9ace0 100644 --- a/poetry_monoranger_plugin/monorepo_adder.py +++ b/poetry_monoranger_plugin/monorepo_adder.py @@ -91,9 +91,9 @@ def execute(self, event: ConsoleCommandEvent): event (ConsoleCommandEvent): The event that triggered the command. """ command = event.command - assert isinstance( - command, (AddCommand, RemoveCommand) - ), f"{self.__class__.__name__} can only be used for `poetry add` and `poetry remove` command" + assert isinstance(command, (AddCommand, RemoveCommand)), ( + f"{self.__class__.__name__} can only be used for `poetry add` and `poetry remove` command" + ) # Create a copy of the poetry object to prevent the command from modifying the original poetry object poetry = Poetry.__new__(Poetry) @@ -116,9 +116,9 @@ def post_execute(self, event: ConsoleTerminateEvent): event (ConsoleTerminateEvent): The event that triggered the command termination. """ command = event.command - assert isinstance( - command, (AddCommand, RemoveCommand) - ), f"{self.__class__.__name__} can only be used for `poetry add` and `poetry remove` command" + assert isinstance(command, (AddCommand, RemoveCommand)), ( + f"{self.__class__.__name__} can only be used for `poetry add` and `poetry remove` command" + ) io = event.io poetry = command.poetry diff --git a/poetry_monoranger_plugin/path_rewriter.py b/poetry_monoranger_plugin/path_rewriter.py index 70cc51e..8fef214 100644 --- a/poetry_monoranger_plugin/path_rewriter.py +++ b/poetry_monoranger_plugin/path_rewriter.py @@ -35,9 +35,9 @@ def execute(self, event: ConsoleCommandEvent): event (ConsoleCommandEvent): The triggering event. """ command = event.command - assert isinstance( - command, BuildCommand - ), f"{self.__class__.__name__} can only be used with the `poetry build` command" + assert isinstance(command, BuildCommand), ( + f"{self.__class__.__name__} can only be used with the `poetry build` command" + ) io = event.io poetry = command.poetry diff --git a/poetry_monoranger_plugin/venv_modifier.py b/poetry_monoranger_plugin/venv_modifier.py index ec70638..5519117 100644 --- a/poetry_monoranger_plugin/venv_modifier.py +++ b/poetry_monoranger_plugin/venv_modifier.py @@ -46,9 +46,9 @@ def execute(self, event: ConsoleCommandEvent): event (ConsoleCommandEvent): The triggering event. """ command = event.command - assert isinstance(command, EnvCommand) and not isinstance( - command, SelfCommand - ), f"{self.__class__.__name__} can only be used for commands that require an environment (except `poetry self`)" + assert isinstance(command, EnvCommand) and not isinstance(command, SelfCommand), ( + f"{self.__class__.__name__} can only be used for commands that require an environment (except `poetry self`)" + ) # We don't want to activate the monorepo root venv if we are already inside a venv # in order to be consistent with poetry's current behavior. diff --git a/pyproject.toml b/pyproject.toml index a0b3a89..772dd56 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -17,7 +17,7 @@ python = "^3.9" poetry = ">=1.8.0,<1.9.0" [tool.poetry.group.dev.dependencies] -ruff = ">=0.6.9,<0.9.0" +ruff = ">=0.6.9,<0.10.0" mypy = {version="^1.13.0", extras=["faster-cache"]} pre-commit = "^4.0.0" pre-commit-hooks = "^5.0.0"