.pre-commit-config.yaml 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. repos:
  2. - repo: https://github.com/pre-commit/mirrors-mypy
  3. rev: 'v0.910' # Use the sha / tag you want to point at
  4. hooks:
  5. - id: mypy
  6. additional_dependencies: [
  7. 'types-Markdown',
  8. 'types-python-dateutil',
  9. 'types-pytz',
  10. 'types-tzlocal',
  11. ]
  12. - repo: https://github.com/Lucas-C/pre-commit-hooks
  13. rev: v1.1.10
  14. hooks:
  15. - id: forbid-crlf
  16. - id: remove-crlf
  17. - id: forbid-tabs
  18. - id: remove-tabs
  19. - id: insert-license
  20. files: \.py$
  21. args:
  22. - --license-filepath
  23. - .license-header
  24. - repo: https://github.com/pre-commit/pre-commit-hooks
  25. rev: v4.0.1
  26. hooks:
  27. - id: trailing-whitespace
  28. - id: end-of-file-fixer
  29. - id: check-merge-conflict
  30. - id: check-yaml
  31. args: [--unsafe]
  32. - repo: https://github.com/ambv/black
  33. rev: 22.3.0
  34. hooks:
  35. - id: black
  36. args: [--line-length=120]
  37. language_version: python3
  38. - repo: https://gitlab.com/pycqa/flake8
  39. rev: 3.9.2
  40. hooks:
  41. - id: flake8
  42. additional_dependencies: [flake8-typing-imports==1.10.0]