.pre-commit-config.yaml 913 B

1234567891011121314151617181920212223242526272829303132333435
  1. default_language_version:
  2. python: python3
  3. repos:
  4. - repo: https://github.com/pre-commit/pre-commit-hooks
  5. rev: v4.4.0
  6. hooks:
  7. - id: trailing-whitespace
  8. - id: end-of-file-fixer
  9. - id: check-yaml
  10. - id: check-toml
  11. - id: check-added-large-files
  12. - repo: https://github.com/pycqa/isort
  13. rev: '5.12.0'
  14. hooks:
  15. - id: isort
  16. exclude: 'settings'
  17. - repo: https://github.com/psf/black
  18. rev: '23.1.0'
  19. hooks:
  20. - id: black
  21. exclude: 'migrations*|urls*|settings*'
  22. - repo: https://github.com/pycqa/flake8
  23. rev: '6.0.0'
  24. hooks:
  25. - id: flake8
  26. # NB The "exclude" setting in setup.cfg is ignored by pre-commit
  27. exclude: 'migrations*|urls*|settings*'
  28. - repo: https://github.com/pre-commit/mirrors-mypy
  29. rev: 'v1.5.1'
  30. hooks:
  31. - id: mypy
  32. exclude: tests
  33. additional_dependencies:
  34. - 'pydantic==2.*'