Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#1077)
Browse files Browse the repository at this point in the history
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
pre-commit-ci[bot] authored Feb 4, 2025
1 parent 822a467 commit f5fef37
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ exclude: |
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: "v0.8.6"
rev: "v0.9.4"
hooks:
- id: ruff
exclude: "examples|tests/assets"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ def write_file(filename, s):
"""
if pip_dependencies:
post_install += f"""
python -m pip install {' '.join(pip_dependencies)}
python -m pip install {" ".join(pip_dependencies)}
"""

# Writes files to disk
Expand Down
2 changes: 1 addition & 1 deletion conda-store-server/conda_store_server/_internal/orm.py
Original file line number Diff line number Diff line change
Expand Up @@ -562,7 +562,7 @@ def update_packages(self, db, subdirs=None):
packages = {}

for p_build in packages_data:
package_key = f'{p_build["name"]}-{p_build["version"]}-{self.id}'
package_key = f"{p_build['name']}-{p_build['version']}-{self.id}"

# Filtering out : if the key already exists in existing_packages_keys,
# then the package is already if DB, we don't add it.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -372,9 +372,7 @@ def _check_worker(self, delay=5):
with session_factory() as db:
q = db.query(orm.Worker).first()
if q is not None and q.initialized:
self.log.info(
f"{_Color.GREEN}" "Worker initialized" f"{_Color.RESET}"
)
self.log.info(f"{_Color.GREEN}Worker initialized{_Color.RESET}")
break

time.sleep(delay)
Expand Down
2 changes: 1 addition & 1 deletion conda-store-server/conda_store_server/_internal/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ def compile_arn_sql_like(
match = allowed_regex.match(arn)
if match is None:
raise ValueError(
"Could not find a match for the requested " f"namespace/environment={arn}"
f"Could not find a match for the requested namespace/environment={arn}"
)

return (
Expand Down
2 changes: 1 addition & 1 deletion conda-store-server/tests/user_journeys/utils/api_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ def get_builds(
if namespace:
query_params.append(f"namespace={namespace}")

return self._make_request(f'api/v1/build/?{"&".join(query_params)}').json()[
return self._make_request(f"api/v1/build/?{'&'.join(query_params)}").json()[
"data"
]

Expand Down

0 comments on commit f5fef37

Please sign in to comment.