Skip to content

Commit

Permalink
chore: bump ruff to 0.5.1 (#180)
Browse files Browse the repository at this point in the history
Signed-off-by: Isabella Basso do Amaral <idoamara@redhat.com>
  • Loading branch information
isinyaaa authored Jul 11, 2024
1 parent 7bc3231 commit aeb4bda
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 27 deletions.
40 changes: 20 additions & 20 deletions clients/python/poetry.lock

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

2 changes: 1 addition & 1 deletion clients/python/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ sphinx-autobuild = ">=2021.3.14,<2025.0.0"
pytest = ">=7.4.2,<9.0.0"
coverage = { extras = ["toml"], version = "^7.3.2" }
pytest-cov = ">=4.1,<6.0"
ruff = "^0.4.4"
ruff = "0.5.1"
mypy = "^1.7.0"
pytest-asyncio = "^0.23.7"
requests = "^2.32.2"
Expand Down
12 changes: 6 additions & 6 deletions clients/python/tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,18 +55,18 @@ def _compose_mr(root):
msg = f"The file {sqlite_db_file} already exists; make sure to cancel it before running these tests."
raise FileExistsError(msg)
print(f" Starting Docker Compose in folder {root}")
p = subprocess.Popen(
p = subprocess.Popen( # noqa: S602
f"{DOCKER} compose -f {COMPOSE_FILE} up --build",
shell=True, # noqa: S602
shell=True,
cwd=root,
)
yield

p.kill()
print(f" Closing Docker Compose in folder {root}")
subprocess.call(
subprocess.call( # noqa: S602
f"{DOCKER} compose -f {COMPOSE_FILE} down",
shell=True, # noqa: S602
shell=True,
cwd=root,
)
try:
Expand Down Expand Up @@ -95,9 +95,9 @@ async def yield_and_restart(root):
sleep(1)

print("Restarting model-registry...")
subprocess.call(
subprocess.call( # noqa: S602
f"{DOCKER} compose -f {COMPOSE_FILE} restart model-registry",
shell=True, # noqa: S602
shell=True,
cwd=root,
)

Expand Down

0 comments on commit aeb4bda

Please sign in to comment.