You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

.pre-commit-config.yaml 1.0 kB

12345678910111213141516171819202122232425262728293031323334353637
  1. repos:
  2. - repo: https://github.com/pycqa/flake8.git
  3. rev: 4.0.0
  4. hooks:
  5. - id: flake8
  6. exclude: thirdparty/|examples/
  7. - repo: https://github.com/PyCQA/isort.git
  8. rev: 4.3.21
  9. hooks:
  10. - id: isort
  11. exclude: examples
  12. - repo: https://github.com/pre-commit/mirrors-yapf.git
  13. rev: v0.30.0
  14. hooks:
  15. - id: yapf
  16. exclude: thirdparty/|examples/
  17. - repo: https://github.com/pre-commit/pre-commit-hooks.git
  18. rev: v3.1.0
  19. hooks:
  20. - id: trailing-whitespace
  21. exclude: thirdparty/
  22. - id: check-yaml
  23. exclude: thirdparty/
  24. - id: end-of-file-fixer
  25. exclude: thirdparty/
  26. - id: requirements-txt-fixer
  27. exclude: thirdparty/
  28. - id: double-quote-string-fixer
  29. exclude: thirdparty/
  30. - id: check-merge-conflict
  31. exclude: thirdparty/
  32. - id: fix-encoding-pragma
  33. exclude: thirdparty/
  34. args: ["--remove"]
  35. - id: mixed-line-ending
  36. exclude: thirdparty/
  37. args: ["--fix=lf"]