Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

66 Zeilen
1.5KB

  1. # Define hooks for code formations
  2. # Will be applied on any updated commit files if a user has installed and linked commit hook
  3. default_language_version:
  4. python: python3.8
  5. # Define bot property if installed via https://github.com/marketplace/pre-commit-ci
  6. ci:
  7. autofix_prs: true
  8. autoupdate_commit_msg: '[pre-commit.ci] pre-commit suggestions'
  9. autoupdate_schedule: quarterly
  10. # submodules: true
  11. repos:
  12. - repo: https://github.com/pre-commit/pre-commit-hooks
  13. rev: v4.1.0
  14. hooks:
  15. - id: end-of-file-fixer
  16. - id: trailing-whitespace
  17. - id: check-case-conflict
  18. - id: check-yaml
  19. - id: check-toml
  20. - id: pretty-format-json
  21. - id: check-docstring-first
  22. - repo: https://github.com/asottile/pyupgrade
  23. rev: v2.31.1
  24. hooks:
  25. - id: pyupgrade
  26. args: [--py36-plus]
  27. name: Upgrade code
  28. - repo: https://github.com/PyCQA/isort
  29. rev: 5.10.1
  30. hooks:
  31. - id: isort
  32. name: Sort imports
  33. - repo: https://github.com/pre-commit/mirrors-yapf
  34. rev: v0.32.0
  35. hooks:
  36. - id: yapf
  37. name: YAPF formatting
  38. # TODO
  39. #- repo: https://github.com/executablebooks/mdformat
  40. # rev: 0.7.7
  41. # hooks:
  42. # - id: mdformat
  43. # additional_dependencies:
  44. # - mdformat-gfm
  45. # - mdformat-black
  46. # - mdformat_frontmatter
  47. # TODO
  48. #- repo: https://github.com/asottile/yesqa
  49. # rev: v1.2.3
  50. # hooks:
  51. # - id: yesqa
  52. - repo: https://github.com/PyCQA/flake8
  53. rev: 4.0.1
  54. hooks:
  55. - id: flake8
  56. name: PEP8