Skip to content

Commit ad8bebe

Browse files
pre-commit-ci[bot]wanghan-iapcmnjzjz
authored
[pre-commit.ci] pre-commit autoupdate (#4159)
<!--pre-commit.ci start--> updates: - [github.com/astral-sh/ruff-pre-commit: v0.6.5 → v0.6.7](astral-sh/ruff-pre-commit@v0.6.5...v0.6.7) - https://github.com/pylint-dev/pylint/: v3.2.7 → v3.3.0 <!--pre-commit.ci end--> --------- Signed-off-by: Jinzhe Zeng <jinzhe.zeng@rutgers.edu> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Han Wang <92130845+wanghan-iapcm@users.noreply.github.com> Co-authored-by: Jinzhe Zeng <jinzhe.zeng@rutgers.edu>
1 parent 94fe957 commit ad8bebe

4 files changed

Lines changed: 7 additions & 7 deletions

File tree

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ repos:
2929
exclude: ^source/3rdparty
3030
- repo: https://github.com/astral-sh/ruff-pre-commit
3131
# Ruff version.
32-
rev: v0.6.5
32+
rev: v0.6.7
3333
hooks:
3434
- id: ruff
3535
args: ["--fix"]
@@ -146,7 +146,7 @@ repos:
146146
exclude: .pre-commit-config.yaml|source/lmp
147147
# customized pylint rules
148148
- repo: https://github.com/pylint-dev/pylint/
149-
rev: v3.2.7
149+
rev: v3.3.0
150150
hooks:
151151
- id: pylint
152152
entry: env PYTHONPATH=source/checker pylint

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -414,4 +414,4 @@ plugins = ["source.3rdparty.coverage_plugins.jit_plugin"]
414414
[tool.pylint.'MESSAGES CONTROL']
415415
load-plugins = "deepmd_checker"
416416
disable = "all"
417-
enable = "EDP01,EDP02"
417+
enable = "E8001,E8002"

source/checker/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# DeePMD-kit customized Pylint plugin
22

3-
- EDP01: Require explicit device when initializing a PyTorch tensor.
4-
- EDP02: Require explicit dtype when initializing a NumPy array, a TensorFlow tensor, or a PyTorch tensor.
3+
- E8001: Require explicit device when initializing a PyTorch tensor.
4+
- E8002: Require explicit dtype when initializing a NumPy array, a TensorFlow tensor, or a PyTorch tensor.

source/checker/deepmd_checker.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@
2121
class DPChecker(BaseChecker):
2222
name = "deepmd-checker"
2323
msgs: ClassVar[dict] = {
24-
"EDP01": (
24+
"E8001": (
2525
"No explicit device.",
2626
"no-explicit-device",
2727
"Require explicit device when initializing a PyTorch tensor.",
2828
),
29-
"EDP02": (
29+
"E8002": (
3030
"No explicit dtype.",
3131
"no-explicit-dtype",
3232
"Require explicit dtype when initializing a NumPy array, a TensorFlow tensor, or a PyTorch tensor.",

0 commit comments

Comments
 (0)