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.

.pre-commit-config.yaml 856B

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