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 3e53cc8
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 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
2 changes: 1 addition & 1 deletion src/aiida/calculations/transfer.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def validate_instructions(instructions, _):
return errmsg


def validate_transfer_inputs(inputs, _):
def validate_transfer_inputs(inputs, _ctx):
"""Check that the instructions dict and the source nodes are consistent"""
source_nodes = inputs['source_nodes']
instructions = inputs['instructions']
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 3e53cc8

Please sign in to comment.