diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index fb1a5ff907..7aa2012200 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -65,13 +65,13 @@ repos: - id: clang-format exclude: ^(source/3rdparty|source/lib/src/gpu/cudart/.+\.inc|.+\.ipynb$) # markdown, yaml, CSS, javascript - # - repo: https://github.com/pre-commit/mirrors-prettier - # rev: v4.0.0-alpha.8 - # hooks: - # - id: prettier - # types_or: [markdown, yaml, css] - # # workflow files cannot be modified by pre-commit.ci - # exclude: ^(source/3rdparty|\.github/workflows|\.clang-format) + - repo: https://github.com/pre-commit/mirrors-prettier + rev: v4.0.0-alpha.8 + hooks: + - id: prettier + types_or: [markdown, yaml, css] + # workflow files cannot be modified by pre-commit.ci + exclude: ^(source/3rdparty|\.github/workflows|\.clang-format) # Shell - repo: https://github.com/scop/pre-commit-shfmt rev: v3.10.0-1 @@ -83,25 +83,25 @@ repos: hooks: - id: cmake-format #- id: cmake-lint - # - repo: https://github.com/njzjz/mirrors-bibtex-tidy - # rev: v1.13.0 - # hooks: - # - id: bibtex-tidy - # args: - # - --curly - # - --numeric - # - --align=13 - # - --blank-lines - # # disable sort: the order of keys and fields has explict meanings - # #- --sort=key - # - --duplicates=key,doi,citation,abstract - # - --merge=combine - # #- --sort-fields - # #- --strip-comments - # - --trailing-commas - # - --encode-urls - # - --remove-empty-fields - # - --wrap=80 + - repo: https://github.com/njzjz/mirrors-bibtex-tidy + rev: v1.13.0 + hooks: + - id: bibtex-tidy + args: + - --curly + - --numeric + - --align=13 + - --blank-lines + # disable sort: the order of keys and fields has explict meanings + #- --sort=key + - --duplicates=key,doi,citation,abstract + - --merge=combine + #- --sort-fields + #- --strip-comments + - --trailing-commas + - --encode-urls + - --remove-empty-fields + - --wrap=80 # license header - repo: https://github.com/Lucas-C/pre-commit-hooks rev: v1.5.5 diff --git a/deepmd/pd/utils/learning_rate.py b/deepmd/pd/utils/learning_rate.py deleted file mode 100644 index 3502434bc0..0000000000 --- a/deepmd/pd/utils/learning_rate.py +++ /dev/null @@ -1,8 +0,0 @@ -# SPDX-License-Identifier: LGPL-3.0-or-later -from deepmd.dpmodel.utils.learning_rate import ( - LearningRateExp, -) - -__all__ = [ - "LearningRateExp", -] diff --git a/deepmd/pd/utils/plugin.py b/deepmd/pd/utils/plugin.py deleted file mode 100644 index aa901c06e8..0000000000 --- a/deepmd/pd/utils/plugin.py +++ /dev/null @@ -1,16 +0,0 @@ -# SPDX-License-Identifier: LGPL-3.0-or-later -"""Base of plugin systems.""" - -from deepmd.utils.plugin import ( - Plugin, - PluginVariant, - VariantABCMeta, - VariantMeta, -) - -__all__ = [ - "Plugin", - "VariantMeta", - "VariantABCMeta", - "PluginVariant", -] diff --git a/source/tests/pd/requirements.txt b/source/tests/pd/requirements.txt deleted file mode 100644 index 74abad719e..0000000000 --- a/source/tests/pd/requirements.txt +++ /dev/null @@ -1,6 +0,0 @@ -tensorflow>=2.14.0 -deepmd-kit>=2.2.7 -dpdata -ase -coverage -pytest