.pre-commit-config.yaml 952 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. repos:
  2. - repo: https://github.com/pre-commit/pre-commit-hooks
  3. rev: v4.4.0
  4. hooks:
  5. - id: check-yaml
  6. - id: check-json
  7. - id: check-xml
  8. - id: end-of-file-fixer
  9. - id: trailing-whitespace
  10. - id: check-added-large-files
  11. - id: check-merge-conflict
  12. - repo: https://github.com/psf/black
  13. rev: "23.7.0"
  14. hooks:
  15. - id: black
  16. # - repo: https://github.com/pylint-dev/pylint
  17. # rev: "v3.0.0a6"
  18. # hooks:
  19. # - id: pylint
  20. - repo: https://github.com/pre-commit/mirrors-clang-format
  21. rev: "v16.0.6"
  22. hooks:
  23. - id: clang-format
  24. - repo: https://github.com/cpplint/cpplint
  25. rev: "1.6.1"
  26. hooks:
  27. - id: cpplint
  28. args:
  29. [
  30. "--filter=-whitespace/line_length,-legal/copyright,-build/include_order,-runtime/references,-build/c++11,-build/namespaces",
  31. ]
  32. exclude: 3rd_party/|include/
  33. default_language_version:
  34. python: python3.8