.pre-commit-config-zh-cn.yaml 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. exclude: ^tests/data/
  2. repos:
  3. - repo: https://gitee.com/openmmlab/mirrors-flake8
  4. rev: 5.0.4
  5. hooks:
  6. - id: flake8
  7. - repo: https://gitee.com/openmmlab/mirrors-isort
  8. rev: 5.11.5
  9. hooks:
  10. - id: isort
  11. - repo: https://gitee.com/openmmlab/mirrors-yapf
  12. rev: v0.32.0
  13. hooks:
  14. - id: yapf
  15. - repo: https://gitee.com/openmmlab/mirrors-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://gitee.com/openmmlab/mirrors-mdformat
  29. rev: 0.7.9
  30. hooks:
  31. - id: mdformat
  32. args: ["--number"]
  33. additional_dependencies:
  34. - mdformat-openmmlab
  35. - mdformat_frontmatter
  36. - linkify-it-py
  37. - repo: https://gitee.com/openmmlab/mirrors-codespell
  38. rev: v2.2.1
  39. hooks:
  40. - id: codespell
  41. - repo: https://gitee.com/openmmlab/mirrors-docformatter
  42. rev: v1.3.1
  43. hooks:
  44. - id: docformatter
  45. args: ["--in-place", "--wrap-descriptions", "79"]
  46. - repo: https://gitee.com/openmmlab/mirrors-pyupgrade
  47. rev: v3.0.0
  48. hooks:
  49. - id: pyupgrade
  50. args: ["--py36-plus"]
  51. - repo: https://gitee.com/open-mmlab/pre-commit-hooks
  52. rev: v0.2.0
  53. hooks:
  54. - id: check-algo-readme
  55. - id: check-copyright
  56. args: ["mmdet"]
  57. # - repo: https://gitee.com/openmmlab/mirrors-mypy
  58. # rev: v0.812
  59. # hooks:
  60. # - id: mypy
  61. # exclude: "docs"