Skip to content

Commit e9be507

Browse files
[pre-commit.ci] pre-commit autoupdate (#2944)
<!--pre-commit.ci start--> updates: - [github.com/astral-sh/ruff-pre-commit: v0.0.292 → v0.1.1](astral-sh/ruff-pre-commit@v0.0.292...v0.1.1) - [github.com/psf/black-pre-commit-mirror: 23.9.1 → 23.10.0](psf/black-pre-commit-mirror@23.9.1...23.10.0) - [github.com/pre-commit/mirrors-clang-format: v17.0.2 → v17.0.3](pre-commit/mirrors-clang-format@v17.0.2...v17.0.3) <!--pre-commit.ci end--> --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 8b5b539 commit e9be507

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,13 @@ repos:
3030
exclude: ^source/3rdparty
3131
- repo: https://github.com/astral-sh/ruff-pre-commit
3232
# Ruff version.
33-
rev: v0.0.292
33+
rev: v0.1.1
3434
hooks:
3535
- id: ruff
3636
args: ["--fix"]
3737
exclude: ^source/3rdparty
3838
- repo: https://github.com/psf/black-pre-commit-mirror
39-
rev: 23.9.1
39+
rev: 23.10.0
4040
hooks:
4141
- id: black-jupyter
4242
exclude: ^source/3rdparty
@@ -54,7 +54,7 @@ repos:
5454
- id: blacken-docs
5555
# C++
5656
- repo: https://github.com/pre-commit/mirrors-clang-format
57-
rev: v17.0.2
57+
rev: v17.0.3
5858
hooks:
5959
- id: clang-format
6060
exclude: ^source/3rdparty|source/lib/src/gpu/cudart/.+\.inc

deepmd/entrypoints/train.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -406,9 +406,7 @@ def get_nbor_stat(jdata, rcut, one_type: bool = False):
406406
tmp_data.get_batch()
407407
assert (
408408
tmp_data.get_type_map()
409-
), "In multi-task mode, 'type_map.raw' must be defined in data systems {}! ".format(
410-
systems
411-
)
409+
), f"In multi-task mode, 'type_map.raw' must be defined in data systems {systems}! "
412410
if train_data is None:
413411
train_data = tmp_data
414412
else:

0 commit comments

Comments
 (0)