forked from PaddlePaddle/PaddleScience
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit b980cb5
Showing
86 changed files
with
6,397 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# This file is used by clang-format to autoformat paddle source code | ||
# | ||
# The clang-format is part of llvm toolchain. | ||
# It need to install llvm and clang to format source code style. | ||
# | ||
# The basic usage is, | ||
# clang-format -i -style=file PATH/TO/SOURCE/CODE | ||
# | ||
# The -style=file implicit use ".clang-format" file located in one of | ||
# parent directory. | ||
# The -i means inplace change. | ||
# | ||
# The document of clang-format is | ||
# http://clang.llvm.org/docs/ClangFormat.html | ||
# http://clang.llvm.org/docs/ClangFormatStyleOptions.html | ||
--- | ||
Language: Cpp | ||
BasedOnStyle: Google | ||
IndentWidth: 2 | ||
TabWidth: 2 | ||
ContinuationIndentWidth: 4 | ||
MaxEmptyLinesToKeep: 2 | ||
AccessModifierOffset: -2 # The private/protected/public has no indent in class | ||
Standard: Cpp11 | ||
AllowAllParametersOfDeclarationOnNextLine: true | ||
BinPackParameters: false | ||
BinPackArguments: false | ||
... | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,129 @@ | ||
# Byte-compiled / optimized / DLL files | ||
__pycache__/ | ||
*.py[cod] | ||
*$py.class | ||
|
||
# C extensions | ||
*.so | ||
|
||
# Distribution / packaging | ||
.Python | ||
build/ | ||
develop-eggs/ | ||
dist/ | ||
downloads/ | ||
eggs/ | ||
.eggs/ | ||
lib/ | ||
lib64/ | ||
parts/ | ||
sdist/ | ||
var/ | ||
wheels/ | ||
share/python-wheels/ | ||
*.egg-info/ | ||
.installed.cfg | ||
*.egg | ||
MANIFEST | ||
|
||
# PyInstaller | ||
# Usually these files are written by a python script from a template | ||
# before PyInstaller builds the exe, so as to inject date/other infos into it. | ||
*.manifest | ||
*.spec | ||
|
||
# Installer logs | ||
pip-log.txt | ||
pip-delete-this-directory.txt | ||
|
||
# Unit test / coverage reports | ||
htmlcov/ | ||
.tox/ | ||
.nox/ | ||
.coverage | ||
.coverage.* | ||
.cache | ||
nosetests.xml | ||
coverage.xml | ||
*.cover | ||
.hypothesis/ | ||
.pytest_cache/ | ||
|
||
# Translations | ||
*.mo | ||
*.pot | ||
|
||
# Django stuff: | ||
*.log | ||
local_settings.py | ||
db.sqlite3 | ||
|
||
# Flask stuff: | ||
instance/ | ||
.webassets-cache | ||
|
||
# Scrapy stuff: | ||
.scrapy | ||
|
||
# Sphinx documentation | ||
docs/_build/ | ||
|
||
# PyBuilder | ||
target/ | ||
|
||
# Jupyter Notebook | ||
.ipynb_checkpoints | ||
|
||
# IPython | ||
profile_default/ | ||
ipython_config.py | ||
|
||
# pyenv | ||
.python-version | ||
|
||
# celery beat schedule file | ||
celerybeat-schedule | ||
|
||
# SageMath parsed files | ||
*.sage.py | ||
|
||
# Environments | ||
.env | ||
.venv | ||
env/ | ||
venv/ | ||
ENV/ | ||
env.bak/ | ||
venv.bak/ | ||
|
||
# Spyder project settings | ||
.spyderproject | ||
.spyproject | ||
|
||
# Rope project settings | ||
.ropeproject | ||
|
||
# mkdocs documentation | ||
/site | ||
|
||
# mypy | ||
.mypy_cache/ | ||
.dmypy.json | ||
dmypy.json | ||
|
||
# Pyre type checker | ||
.pyre/ | ||
|
||
# pycharm | ||
.DS_Store | ||
.idea/ | ||
FETCH_HEAD | ||
|
||
# vscode | ||
.vscode | ||
|
||
# numpy | ||
.npy | ||
|
||
# vtk | ||
.vtk |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
repos: | ||
- repo: https://github.com/Lucas-C/pre-commit-hooks.git | ||
sha: v1.0.1 | ||
hooks: | ||
- id: remove-crlf | ||
files: (?!.*third_party)^.*$ | (?!.*book)^.*$ | ||
- repo: https://github.com/PaddlePaddle/mirrors-yapf.git | ||
sha: 0d79c0c469bab64f7229c9aca2b1186ef47f0e37 | ||
hooks: | ||
- id: yapf | ||
files: (.*\.(py|bzl)|BUILD|.*\.BUILD|WORKSPACE)$ | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
sha: 5bf6c09bfa1297d3692cadd621ef95f1284e33c0 | ||
hooks: | ||
- id: check-added-large-files | ||
- id: check-merge-conflict | ||
- id: check-symlinks | ||
- id: detect-private-key | ||
files: (?!.*third_party)^.*$ | (?!.*book)^.*$ | ||
- id: end-of-file-fixer | ||
- repo: local | ||
hooks: | ||
- id: clang-format-with-version-check | ||
name: clang-format | ||
description: Format files with ClangFormat. | ||
entry: bash ./tools/codestyle/clang_format.hook -i | ||
language: system | ||
files: \.(c|cc|cxx|cpp|cu|h|hpp|hxx|proto)$ | ||
- repo: local | ||
hooks: | ||
- id: cpplint-cpp-source | ||
name: cpplint | ||
description: Check C++ code style using cpplint.py. | ||
entry: bash ./tools/codestyle/cpplint_pre_commit.hook | ||
language: system | ||
files: \.(c|cc|cxx|cpp|cu|h|hpp|hxx)$ | ||
- repo: local | ||
hooks: | ||
- id: pylint-doc-string | ||
name: pylint | ||
description: Check python docstring style using docstring_checker. | ||
entry: bash ./tools/codestyle/pylint_pre_commit.hook | ||
language: system | ||
files: \.(py)$ | ||
- repo: local | ||
hooks: | ||
- id: copyright_checker | ||
name: copyright_checker | ||
entry: python ./tools/codestyle/copyright.hook | ||
language: system | ||
files: \.(c|cc|cxx|cpp|cu|h|hpp|hxx|proto|py|sh)$ | ||
exclude: | | ||
(?x)^( | ||
paddle/utils/.* | ||
)$ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# .readthedocs.yaml | ||
# Read the Docs configuration file | ||
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details | ||
|
||
# Required | ||
version: 2 | ||
|
||
submodules: | ||
include: all | ||
recursive: true | ||
|
||
# Build documentation in the docs/ directory with Sphinx | ||
sphinx: | ||
configuration: docs/conf.py | ||
|
||
# Optionally build your docs in additional formats such as PDF | ||
#formats: | ||
|
||
# Optionally set the version of Python and requirements required to build your docs | ||
python: | ||
version: 3.7 | ||
install: | ||
- requirements: docs/requirements.txt | ||
- requirements: requirements.txt | ||
- method: setuptools | ||
path: . | ||
system_packages: true |
Oops, something went wrong.