Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#231)
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci[bot] authored Jan 28, 2025
1 parent db9b0b0 commit 9af2548
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ repos:
- id: check-toml
# Python
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.8.0
rev: v0.9.3
hooks:
- id: ruff
args: ["--fix"]
Expand All @@ -29,7 +29,7 @@ repos:
args: ["--write"]
# C++
- repo: https://github.com/pre-commit/mirrors-clang-format
rev: v19.1.4
rev: v19.1.7
hooks:
- id: clang-format
# Cython
Expand Down
4 changes: 2 additions & 2 deletions mddatasetbuilder/datasetbuilder.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ def builddataset(self, writegjf=True):
gc.collect()
timearray.append(time.time())
logger.info(
f"Step {len(timearray)-1} Done! Time consumed (s): {timearray[-1]-timearray[-2]:.3f}"
f"Step {len(timearray) - 1} Done! Time consumed (s): {timearray[-1] - timearray[-2]:.3f}"
)

def _readtimestepsbond(self):
Expand Down Expand Up @@ -609,7 +609,7 @@ def _bondtype(self, typebytes):
if typebytes in self.bondtyperestore:
return self.bondtyperestore[typebytes]
typetuple = pickle.loads(typebytes)
typestr = f"{typetuple[0]}{''.join(map(str,typetuple[1]))}"
typestr = f"{typetuple[0]}{''.join(map(str, typetuple[1]))}"
self.bondtyperestore[typebytes] = typestr
return typestr

Expand Down

0 comments on commit 9af2548

Please sign in to comment.