Skip to content

Commit

Permalink
style: format code with Autopep8 and isort
Browse files Browse the repository at this point in the history
This commit fixes the style issues introduced in ea92ccc according to the output
from Autopep8 and isort.

Details: None
  • Loading branch information
deepsource-autofix[bot] authored May 5, 2024
1 parent ea92ccc commit 72408f6
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions extensions/update_host.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,8 @@
from subprocess import check_output as chout
from subprocess import run as sub_run

from interactions import (
Client,
Embed,
Extension,
IntervalTrigger,
SlashContext,
Task,
)
from interactions import (Client, Embed, Extension, IntervalTrigger,
SlashContext, Task)

from extensions.hostsettings import hostsettings_head
from modules.commons import save_traceback_to_file
Expand Down Expand Up @@ -54,7 +48,8 @@ def _pull_from_upstream(self) -> bool:
def _update_pip_dependencies(is_dev: bool = False) -> bool:
"""Update the pip dependencies"""
dev = "_dev" if is_dev else ""
deps = chout(f"pip install -r requirements{dev}.txt", shell=True).decode()
deps = chout(
f"pip install -r requirements{dev}.txt", shell=True).decode()
# check if the dependencies are updated
if "Requirement already satisfied" in deps:
return True
Expand Down Expand Up @@ -110,7 +105,8 @@ async def update_host(self, ctx: SlashContext) -> None:
name="🔀 Git", value="Pulling the latest changes from the upstream"
)
if self._pull_from_upstream():
embed.add_field(name="🔧 Pip", value="Updating the pip dependencies")
embed.add_field(
name="🔧 Pip", value="Updating the pip dependencies")
if self._update_pip_dependencies():
await msg.edit(embed=embed)
else:
Expand Down

0 comments on commit 72408f6

Please sign in to comment.