Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jan 14, 2025
1 parent 0f16ea0 commit 445fdb1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
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

0 comments on commit 445fdb1

Please sign in to comment.