Skip to content

Commit ef807d7

Browse files
authored
Auto-update pre-commit hooks
1 parent 5e855b8 commit ef807d7

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ default_language_version:
33
exclude: '^src/atomate2/vasp/schemas/calc_types/|^.github/'
44
repos:
55
- repo: https://github.com/charliermarsh/ruff-pre-commit
6-
rev: v0.0.275
6+
rev: v0.0.280
77
hooks:
88
- id: ruff
99
args: [--fix]
@@ -16,11 +16,11 @@ repos:
1616
- id: end-of-file-fixer
1717
- id: trailing-whitespace
1818
- repo: https://github.com/psf/black
19-
rev: 23.3.0
19+
rev: 23.7.0
2020
hooks:
2121
- id: black
2222
- repo: https://github.com/asottile/blacken-docs
23-
rev: 1.14.0
23+
rev: 1.15.0
2424
hooks:
2525
- id: blacken-docs
2626
additional_dependencies: [black]

src/atomate2/utils/file_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ def abspath(self, path: str | Path, host: str | None = None) -> Path:
321321
return Path(path).absolute()
322322
ssh = self.get_ssh(host)
323323
_, stdout, _ = ssh.exec_command(f"readlink -f {path}")
324-
return Path([o.split("\n")[0] for o in stdout][0])
324+
return Path(next(o.split("\n")[0] for o in stdout))
325325

326326
def glob(self, path: str | Path, host: str | None = None) -> list[Path]:
327327
"""

0 commit comments

Comments
 (0)