Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#346)
Browse files Browse the repository at this point in the history
* [pre-commit.ci] pre-commit autoupdate

updates:
- [github.com/astral-sh/ruff-pre-commit: v0.8.2 → v0.9.2](astral-sh/ruff-pre-commit@v0.8.2...v0.9.2)

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
pre-commit-ci[bot] authored Jan 21, 2025
1 parent 21c5083 commit 365a499
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
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

0 comments on commit 365a499

Please sign in to comment.