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

Devops: Update pre-commit dependencies #6504

Merged
merged 1 commit into from
Jul 2, 2024
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
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
Loading