Skip to content

Commit

Permalink
Bump ruff from 0.8.4 to 0.9.3 (#50)
Browse files Browse the repository at this point in the history
  • Loading branch information
dependabot[bot] authored Jan 28, 2025
1 parent b3e252a commit c940b03
Show file tree
Hide file tree
Showing 6 changed files with 36 additions and 36 deletions.
40 changes: 20 additions & 20 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions poetry_monoranger_plugin/lock_modifier.py
Original file line number Diff line number Diff line change
Expand Up @@ -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("<info>Running command from monorepo root directory</info>")
Expand Down
12 changes: 6 additions & 6 deletions poetry_monoranger_plugin/monorepo_adder.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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
Expand Down
6 changes: 3 additions & 3 deletions poetry_monoranger_plugin/path_rewriter.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions poetry_monoranger_plugin/venv_modifier.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit c940b03

Please sign in to comment.