From eccef2cdd7dec4e25365ee8b2b17ea60848c0515 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Wed, 29 Jan 2025 02:09:59 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- src/aiida/orm/nodes/data/array/xy.py | 4 ++-- src/aiida/transports/plugins/ssh.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/aiida/orm/nodes/data/array/xy.py b/src/aiida/orm/nodes/data/array/xy.py index b6e1e10c1..24010ac1a 100644 --- a/src/aiida/orm/nodes/data/array/xy.py +++ b/src/aiida/orm/nodes/data/array/xy.py @@ -179,5 +179,5 @@ def get_y(self) -> list[tuple[str, 'ndarray', str]]: y_arrays.append((y_name, y_arrays)) except (KeyError, AttributeError): raise NotExistent(f'Could not retrieve array associated with y array {y_name}') - - return list(zip(y_names, y_arrays, y_units)) \ No newline at end of file + + return list(zip(y_names, y_arrays, y_units)) diff --git a/src/aiida/transports/plugins/ssh.py b/src/aiida/transports/plugins/ssh.py index 9f9827259..47390f123 100644 --- a/src/aiida/transports/plugins/ssh.py +++ b/src/aiida/transports/plugins/ssh.py @@ -1375,9 +1375,9 @@ def rename(self, oldpath: TransportPath, newpath: TransportPath): # why to raise an OSError if the newpath does not exist? # ofcourse newpath shouldn't exist, that's why we are renaming it! # issue opened here: https://github.com/aiidateam/aiida-core/issues/6725 - + if self.isfile(newpath) or self.isdir(newpath): - raise OSError(f"Destination {newpath} already exist") + raise OSError(f'Destination {newpath} already exist') return self.sftp.rename(oldpath, newpath)