Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#2944)
Browse files Browse the repository at this point in the history
<!--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>
  • Loading branch information
pre-commit-ci[bot] authored Oct 24, 2023
1 parent 8b5b539 commit e9be507
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,13 @@ repos:
exclude: ^source/3rdparty
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.0.292
rev: v0.1.1
hooks:
- id: ruff
args: ["--fix"]
exclude: ^source/3rdparty
- repo: https://github.com/psf/black-pre-commit-mirror
rev: 23.9.1
rev: 23.10.0
hooks:
- id: black-jupyter
exclude: ^source/3rdparty
Expand All @@ -54,7 +54,7 @@ repos:
- id: blacken-docs
# C++
- repo: https://github.com/pre-commit/mirrors-clang-format
rev: v17.0.2
rev: v17.0.3
hooks:
- id: clang-format
exclude: ^source/3rdparty|source/lib/src/gpu/cudart/.+\.inc
Expand Down
4 changes: 1 addition & 3 deletions deepmd/entrypoints/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -406,9 +406,7 @@ def get_nbor_stat(jdata, rcut, one_type: bool = False):
tmp_data.get_batch()
assert (
tmp_data.get_type_map()
), "In multi-task mode, 'type_map.raw' must be defined in data systems {}! ".format(
systems
)
), f"In multi-task mode, 'type_map.raw' must be defined in data systems {systems}! "
if train_data is None:
train_data = tmp_data
else:
Expand Down

0 comments on commit e9be507

Please sign in to comment.