您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

31 行
866B

  1. repos:
  2. - repo: https://github.com/pre-commit/pre-commit-hooks
  3. rev: v4.4.0
  4. hooks:
  5. - id: fix-byte-order-marker
  6. - id: check-case-conflict
  7. - id: check-merge-conflict
  8. - id: debug-statements
  9. - id: pretty-format-json
  10. types: [text]
  11. files: \.json(.template)?$
  12. args: [ --autofix , --no-ensure-ascii, --indent=2, --no-sort-keys]
  13. - id: trailing-whitespace
  14. exclude: '(\/|^)lib\/'
  15. args: [ --markdown-linebreak-ext=md ]
  16. - repo: https://github.com/PyCQA/isort
  17. rev: 5.12.0
  18. hooks:
  19. - id: isort
  20. exclude: '(\/|^)lib\/'
  21. args: [ -l, '88']
  22. - repo: https://github.com/psf/black
  23. rev: 23.3.0
  24. hooks:
  25. - id: black
  26. exclude: '(\/|^)lib\/'
  27. - repo: https://github.com/PyCQA/flake8
  28. rev: 6.0.0
  29. hooks:
  30. - id: flake8
  31. exclude: '(\/|^)lib\/'