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 #346

Merged
merged 2 commits into from
Jan 21, 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 @@ -13,7 +13,7 @@ repos:

- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.8.2
rev: v0.9.2
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix, --show-fixes]
Expand Down
4 changes: 2 additions & 2 deletions aiida_registry/fetch_metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ def complete_plugin_data(plugin_data: dict, fetch_pypi=True, fetch_pypi_wheel=Tr
if "package_name" not in list(plugin_data.keys()):
plugin_data["package_name"] = plugin_data["name"].replace("-", "_")

REPORTER.info(f'{plugin_data["package_name"]}')
REPORTER.info(f"{plugin_data['package_name']}")

plugin_data["hosted_on"] = get_hosted_on(plugin_data["code_home"])

Expand Down Expand Up @@ -220,7 +220,7 @@ def complete_plugin_data(plugin_data: dict, fetch_pypi=True, fetch_pypi_wheel=Tr
# run validations

if plugin_data["name"] == "aiida-core" and plugin_data["metadata"].get("version"):
plugin_data["aiida_version"] = f'=={plugin_data["metadata"]["version"]}'
plugin_data["aiida_version"] = f"=={plugin_data['metadata']['version']}"
if plugin_data.get("aiida_version") is None:
REPORTER.warn(
"AiiDA version not found",
Expand Down
2 changes: 1 addition & 1 deletion aiida_registry/parse_pypi.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ def get_pypi_metadata(package_name: str, parse_wheel=True) -> Optional[PypiData]

except Exception as err: # pylint: disable=broad-except
REPORTER.warn(
"Unable to read wheel file from PyPI release: " f"<pre>{err}</pre>",
f"Unable to read wheel file from PyPI release: <pre>{err}</pre>",
check_id="W020",
)

Expand Down
4 changes: 2 additions & 2 deletions aiida_registry/test_install.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def handle_error(process_result, message, check_id=None):
error_message = process_result.output.decode("utf8")

# the error_message is formatted as code block
REPORTER.error(f"{message}" f"<pre>{error_message}</pre>", check_id=check_id)
REPORTER.error(f"{message}<pre>{error_message}</pre>", check_id=check_id)
raise ValueError(f"{message}\n{error_message}")

return error_message
Expand Down Expand Up @@ -120,7 +120,7 @@ def test_install_one_docker(container_image, plugin):
user=user,
)
install_package = container.exec_run(
f'pip install --constraint /tmp/pip-constraint.txt {plugin["pip_url"]}',
f"pip install --constraint /tmp/pip-constraint.txt {plugin['pip_url']}",
user=user,
)

Expand Down
Loading