Sign inSign up

gepetto/linters

By gepetto

•Updated over 1 year ago

Image
0

10K+

gepetto/linters repository overview

⁠Linters for C++ & Python

⁠Use locally

⁠With the pre-built docker image

:warning: this will update your current working directory :warning:

docker run --rm -v $PWD:/root/src -it gepetto/linters
⁠Manually

You should first setup the configurations files from this repository by putting the setup.cfg and the .clang-format files in a parent directory of your project.

Then you can go to your project, and try the following commands:

yapf -ri .
flake8 .
clang-format-6.0 -i $(find . -path ./cmake -prune -o -iregex '.*\.\(h\|c\|hh\|cc\|hpp\|cpp\|hxx\|cxx\)$' -print)

⁠Use in Gitlab CI

format:
  image: gepetto/linters
  before_script:
    - test -f /builds/setup.cfg || ln -s /root/setup.cfg /builds
    - test -f /builds/.clang-format || ln -s /root/.clang-format /builds
  script:
    - isort -c
    - flake8 .
    - check-clang-format.sh

Tag summary

Content type

Image

Digest

sha256:e5b2b3929…

Size

99 MB

Last updated

over 1 year ago

docker pull gepetto/linters