.pre-commit-config.yaml 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. exclude: ^tests/data/
  2. repos:
  3. - repo: https://github.com/PyCQA/flake8
  4. rev: 5.0.4
  5. hooks:
  6. - id: flake8
  7. - repo: https://github.com/PyCQA/isort
  8. rev: 5.11.5
  9. hooks:
  10. - id: isort
  11. - repo: https://github.com/pre-commit/mirrors-yapf
  12. rev: v0.32.0
  13. hooks:
  14. - id: yapf
  15. - repo: https://github.com/pre-commit/pre-commit-hooks
  16. rev: v4.3.0
  17. hooks:
  18. - id: trailing-whitespace
  19. - id: check-yaml
  20. - id: end-of-file-fixer
  21. - id: requirements-txt-fixer
  22. - id: double-quote-string-fixer
  23. - id: check-merge-conflict
  24. - id: fix-encoding-pragma
  25. args: ["--remove"]
  26. - id: mixed-line-ending
  27. args: ["--fix=lf"]
  28. - repo: https://github.com/myint/docformatter
  29. rev: v1.3.1
  30. hooks:
  31. - id: docformatter
  32. args: ["--in-place", "--wrap-descriptions", "79"]
  33. - repo: https://github.com/codespell-project/codespell
  34. rev: v2.1.0
  35. hooks:
  36. - id: codespell
  37. args: ["--skip", "*.ipynb", "-L", "mot"]
  38. - repo: https://github.com/executablebooks/mdformat
  39. rev: 0.7.14
  40. hooks:
  41. - id: mdformat
  42. args: ["--number", "--table-width", "200"]
  43. additional_dependencies:
  44. - mdformat-openmmlab
  45. - mdformat_frontmatter
  46. - linkify-it-py
  47. - repo: https://github.com/open-mmlab/pre-commit-hooks
  48. rev: v0.2.0
  49. hooks:
  50. - id: check-copyright
  51. args: ["mmpose", "tests", "demo", "tools", "--excludes", "demo/mmdetection_cfg", "demo/mmtracking_cfg"]