Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pre-commit.ci] pre-commit autoupdate #1077

Merged
merged 2 commits into from
Feb 4, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ ci:
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
Loading