You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

68 line
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.0.1
  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.23.1
  24. hooks:
  25. - id: pyupgrade
  26. args: [--py36-plus]
  27. name: Upgrade code
  28. # TODO
  29. #- repo: https://github.com/PyCQA/isort
  30. # rev: 5.9.3
  31. # hooks:
  32. # - id: isort
  33. # name: imports
  34. # TODO
  35. #- repo: https://github.com/pre-commit/mirrors-yapf
  36. # rev: v0.31.0
  37. # hooks:
  38. # - id: yapf
  39. # name: formatting
  40. # TODO
  41. #- repo: https://github.com/executablebooks/mdformat
  42. # rev: 0.7.7
  43. # hooks:
  44. # - id: mdformat
  45. # additional_dependencies:
  46. # - mdformat-gfm
  47. # - mdformat-black
  48. # - mdformat_frontmatter
  49. # TODO
  50. #- repo: https://github.com/asottile/yesqa
  51. # rev: v1.2.3
  52. # hooks:
  53. # - id: yesqa
  54. - repo: https://github.com/PyCQA/flake8
  55. rev: 3.9.2
  56. hooks:
  57. - id: flake8
  58. name: PEP8