diff --git a/.clang-format b/.clang-format deleted file mode 100644 index 39c76b6f2d5dfb341472fe78962a8555dfb585ac..0000000000000000000000000000000000000000 --- a/.clang-format +++ /dev/null @@ -1,4 +0,0 @@ ---- -ColumnLimit: 80 -Standard: C++03 -... diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 0000000000000000000000000000000000000000..7b987f2bfa041659dcd813b2d39b7cb3d86bd5f0 --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,32 @@ +repos: +- repo: https://github.com/pre-commit/mirrors-clang-format + rev: v13.0.1 + hooks: + - id: clang-format + args: [-i, --style=Google] +- repo: https://github.com/pre-commit/pre-commit-hooks + rev: v4.1.0 + hooks: + - id: check-added-large-files + - id: check-ast + - id: check-executables-have-shebangs + - id: check-json + - id: check-merge-conflict + - id: check-symlinks + - id: check-toml + - id: check-yaml + - id: debug-statements + - id: destroyed-symlinks + - id: detect-private-key + - id: end-of-file-fixer + - id: fix-byte-order-marker + - id: mixed-line-ending + - id: trailing-whitespace +- repo: https://github.com/psf/black + rev: 22.3.0 + hooks: + - id: black +- repo: https://github.com/PyCQA/flake8 + rev: 4.0.1 + hooks: + - id: flake8 diff --git a/README.md b/README.md index 606dddcba60eb3b8f163d1c6029d7d6b1904df93..fa3fa3fbaa1f951f5c11cd43642ff38d175c754d 100644 --- a/README.md +++ b/README.md @@ -1,16 +1,17 @@ -sot-core -======== +# sot-core [](https://opensource.org/licenses/BSD-2-Clause) [](https://gitlab.laas.fr/stack-of-tasks/sot-core/commits/master) -[](http://gepettoweb.laas.fr/doc/stack-of-tasks/sot-core/master/coverage/) +[](https://gepettoweb.laas.fr/doc/stack-of-tasks/sot-core/master/coverage/) +[](https://github.com/psf/black) +[](https://results.pre-commit.ci/latest/github/stack-of-tasks/sot-core) + This software provides a set of dynamic graph plug-ins which can be used to define and solve hierarchical tasks. -Setup ------ +## Setup To compile this package, it is recommended to create a separate build directory: diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000000000000000000000000000000000000..7ad22b44c945457602878cb6d16e799856c6634f --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,2 @@ +[tool.black] +exclude = "cmake" diff --git a/setup.cfg b/setup.cfg new file mode 100644 index 0000000000000000000000000000000000000000..98698ff08783653bbcff9a976fefd01934bb6de6 --- /dev/null +++ b/setup.cfg @@ -0,0 +1,4 @@ +[flake8] +exclude = cmake +max-line-length = 88 +ignore = E226, E704, E24, E121, W504, E126, E123, W503, E203