a Django-based indieweb.org site https://00dani.me/
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.
 
 
 
 

31 lines
827 B

  1. repos:
  2. - repo: https://github.com/pre-commit/pre-commit-hooks
  3. rev: v2.1.0
  4. hooks:
  5. - id: check-byte-order-marker
  6. - id: check-case-conflict
  7. - id: check-executables-have-shebangs
  8. - id: check-json
  9. - id: check-merge-conflict
  10. - id: check-yaml
  11. - id: end-of-file-fixer
  12. - id: flake8
  13. - id: mixed-line-ending
  14. args:
  15. - --fix=lf
  16. - id: trailing-whitespace
  17. - repo: local
  18. hooks:
  19. - id: pytest
  20. name: Check pytest unit tests pass
  21. entry: pipenv run pytest
  22. pass_filenames: false
  23. language: system
  24. types: [python]
  25. - id: mypy
  26. name: Check mypy static types match
  27. entry: pipenv run mypy . --ignore-missing-imports
  28. pass_filenames: false
  29. language: system
  30. types: [python]