.pre-commit-config.yaml 812 B

12345678910111213141516171819202122232425262728
  1. repos:
  2. - repo: https://github.com/pre-commit/pre-commit-hooks
  3. rev: v4.0.1
  4. hooks:
  5. - id: check-json
  6. - id: end-of-file-fixer
  7. types: [file, python]
  8. - id: trailing-whitespace
  9. types: [file, python]
  10. - id: mixed-line-ending
  11. - id: check-added-large-files
  12. args: [--maxkb=4096]
  13. - repo: https://github.com/psf/black
  14. rev: 23.7.0
  15. hooks:
  16. - id: black
  17. - repo: https://github.com/pycqa/isort
  18. rev: 5.12.0
  19. hooks:
  20. - id: isort
  21. name: isort (python)
  22. args: ["--profile", "black", "-l", "88", "--trailing-comma", "--multi-line", "3"]
  23. - repo: https://github.com/pycqa/flake8.git
  24. rev: 6.0.0
  25. hooks:
  26. - id: flake8
  27. types: [python]
  28. args: ["--max-line-length", "88", "--ignore", "E203,E501,W503,W504"]