Skip to content

Commit

Permalink
Devops: Update pre-commit dependencies
Browse files Browse the repository at this point in the history
updates:
- [github.com/python-jsonschema/check-jsonschema: 0.28.2 → 0.28.6](python-jsonschema/check-jsonschema@0.28.2...0.28.6)
- [github.com/astral-sh/ruff-pre-commit: v0.4.1 → v0.5.0](astral-sh/ruff-pre-commit@v0.4.1...v0.5.0)
  • Loading branch information
pre-commit-ci[bot] authored and sphuber committed Jul 2, 2024
1 parent 9c26ce7 commit f7e35b1
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ repos:
exclude: *exclude_pre_commit_hooks

- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.28.2
rev: 0.28.6
hooks:
- id: check-github-workflows

Expand All @@ -37,7 +37,7 @@ repos:
args: [--line-length=120, --fail-on-change]

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.4.1
rev: v0.5.0
hooks:
- id: ruff-format
exclude: &exclude_ruff >
Expand Down
6 changes: 3 additions & 3 deletions src/aiida/calculations/transfer.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,21 +79,21 @@ def validate_transfer_inputs(inputs, _):
)
error_message_list.append(error_message)

for source_label, _, _ in local_files:
for source_label, _, __ in local_files:
source_nodes_required.add(source_label)
source_node = source_nodes.get(source_label, None)
error_message = check_node_type('local_files', source_label, source_node, orm.FolderData)
if error_message:
error_message_list.append(error_message)

for source_label, _, _ in remote_files:
for source_label, _, __ in remote_files:
source_nodes_required.add(source_label)
source_node = source_nodes.get(source_label, None)
error_message = check_node_type('remote_files', source_label, source_node, orm.RemoteData)
if error_message:
error_message_list.append(error_message)

for source_label, _, _ in symlink_files:
for source_label, _, __ in symlink_files:
source_nodes_required.add(source_label)
source_node = source_nodes.get(source_label, None)
error_message = check_node_type('symlink_files', source_label, source_node, orm.RemoteData)
Expand Down
2 changes: 1 addition & 1 deletion src/aiida/engine/processes/functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def get_stack_size(size: int = 2) -> int: # type: ignore[return]
"""
frame = sys._getframe(size)
try:
for size in itertools.count(size, 8):
for size in itertools.count(size, 8): # noqa: PLR1704
frame = frame.f_back.f_back.f_back.f_back.f_back.f_back.f_back.f_back # type: ignore[assignment,union-attr]
except AttributeError:
while frame: # type: ignore[truthy-bool]
Expand Down
4 changes: 2 additions & 2 deletions src/aiida/orm/nodes/data/remote/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,8 +175,8 @@ def _clean(self, transport=None):
remote_dir = self.get_remote_path()

if transport is None:
with self.get_authinfo().get_transport() as transport:
clean_remote(transport, remote_dir)
with self.get_authinfo().get_transport() as _transport:
clean_remote(_transport, remote_dir)
else:
if transport.hostname != self.computer.hostname:
raise ValueError(
Expand Down

0 comments on commit f7e35b1

Please sign in to comment.