.pre-commit-config.yaml 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. repos:
  2. - repo: https://github.com/PyCQA/flake8
  3. rev: 5.0.4
  4. hooks:
  5. - id: flake8
  6. - repo: https://github.com/PyCQA/isort
  7. rev: 5.11.5
  8. hooks:
  9. - id: isort
  10. - repo: https://github.com/pre-commit/mirrors-yapf
  11. rev: v0.32.0
  12. hooks:
  13. - id: yapf
  14. - repo: https://github.com/codespell-project/codespell
  15. rev: v2.2.1
  16. hooks:
  17. - id: codespell
  18. - repo: https://github.com/pre-commit/pre-commit-hooks
  19. rev: v4.3.0
  20. hooks:
  21. - id: trailing-whitespace
  22. - id: check-yaml
  23. - id: end-of-file-fixer
  24. - id: requirements-txt-fixer
  25. - id: double-quote-string-fixer
  26. - id: check-merge-conflict
  27. - id: fix-encoding-pragma
  28. args: ["--remove"]
  29. - id: mixed-line-ending
  30. args: ["--fix=lf"]
  31. - repo: https://github.com/executablebooks/mdformat
  32. rev: 0.7.9
  33. hooks:
  34. - id: mdformat
  35. args: ["--number", "--table-width", "200"]
  36. additional_dependencies:
  37. - mdformat-openmmlab
  38. - mdformat_frontmatter
  39. - linkify-it-py
  40. - repo: https://github.com/myint/docformatter
  41. rev: v1.3.1
  42. hooks:
  43. - id: docformatter
  44. args: ["--in-place", "--wrap-descriptions", "79"]