.pre-commit-config.yaml 1014 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. repos:
  2. - repo: https://github.com/pre-commit/pre-commit-hooks
  3. rev: v2.3.0
  4. hooks:
  5. - id: trailing-whitespace
  6. - id: flake8
  7. - id: check-merge-conflict
  8. - id: check-yaml
  9. - id: check-executables-have-shebangs
  10. - id: mixed-line-ending
  11. - repo: https://github.com/psf/black
  12. rev: stable
  13. hooks:
  14. - id: black
  15. - repo: local
  16. hooks:
  17. - id: version-check
  18. name: version-check
  19. description: "Check if version is consistent in all source files"
  20. entry: .pre-commit/version_check.py
  21. pass_filenames: false
  22. stages:
  23. - commit
  24. - manual
  25. language: python
  26. files: ^(\.pre-commit/version_check\.py|setup\.py|sphinx_multiversion/__init__\.py|docs/conf\.py|docs/changelog\.rst)$
  27. additional_dependencies:
  28. - sphinx
  29. - id: unittest
  30. name: unittest
  31. description: "Run unittests"
  32. entry: python -m unittest discover
  33. pass_filenames: false
  34. language: python
  35. types:
  36. - python
  37. stages:
  38. - commit
  39. - manual
  40. additional_dependencies:
  41. - sphinx