diff --git a/.clang-format b/.clang-format new file mode 100644 index 0000000000..727520b46b --- /dev/null +++ b/.clang-format @@ -0,0 +1,4 @@ +--- +BasedOnStyle: Google +BinPackParameters: false +... diff --git a/.github/workflows/lint_python.yml b/.github/workflows/lint_python.yml deleted file mode 100644 index c41416b181..0000000000 --- a/.github/workflows/lint_python.yml +++ /dev/null @@ -1,35 +0,0 @@ -on: - push: - pull_request: -name: Lint Python -jobs: - lintpython: - name: Lint Python - runs-on: ubuntu-20.04 - strategy: - matrix: - python-version: [3.8] - - steps: - - name: work around permission issue - run: git config --global --add safe.directory /__w/deepmd-kit/deepmd-kit - - uses: actions/checkout@v1 - - uses: actions/setup-python@v2 - with: - python-version: ${{ matrix.python }} - - name: Install requirements - run: pip install . - - uses: marian-code/python-lint-annotate@v2.5.0 - with: - python-root-list: "./deepmd/*.py ./deepmd/*/*.py ./deepmd/*/*/*.py ./source/train/*.py ./source/tests/*.py ./source/op/*.py" - use-black: true - use-isort: true - use-mypy: true - use-pycodestyle: true - use-pydocstyle: true - extra-pycodestyle-options: "--max-line-length=88" - use-pylint: false - use-flake8: false - use-vulture: true - conda-python-version: "3.8" - diff --git a/source/ipi/include/XyzFileManager.h b/source/ipi/include/XyzFileManager.h index 2f95799cd8..cc48624554 100644 --- a/source/ipi/include/XyzFileManager.h +++ b/source/ipi/include/XyzFileManager.h @@ -1,6 +1,7 @@ #ifndef __XyzFileManager_h_wanghan__ #define __XyzFileManager_h_wanghan__ +#include #include // using namespace std; diff --git a/source/lib/include/pair_tab.h b/source/lib/include/pair_tab.h index db05b68df2..c99ba3bff5 100644 --- a/source/lib/include/pair_tab.h +++ b/source/lib/include/pair_tab.h @@ -1,4 +1,5 @@ #pragma once +#include namespace deepmd{ diff --git a/source/lib/include/switcher.h b/source/lib/include/switcher.h index e4d800bd14..77c6241f67 100644 --- a/source/lib/include/switcher.h +++ b/source/lib/include/switcher.h @@ -1,5 +1,7 @@ #pragma once +#include + namespace deepmd{ inline double