Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

.pre-commit-config.yaml 866B

12345678910111213141516171819202122232425262728293031
  1. repos:
  2. - repo: https://github.com/pre-commit/pre-commit-hooks
  3. rev: v4.4.0
  4. hooks:
  5. - id: fix-byte-order-marker
  6. - id: check-case-conflict
  7. - id: check-merge-conflict
  8. - id: debug-statements
  9. - id: pretty-format-json
  10. types: [text]
  11. files: \.json(.template)?$
  12. args: [ --autofix , --no-ensure-ascii, --indent=2, --no-sort-keys]
  13. - id: trailing-whitespace
  14. exclude: '(\/|^)lib\/'
  15. args: [ --markdown-linebreak-ext=md ]
  16. - repo: https://github.com/PyCQA/isort
  17. rev: 5.12.0
  18. hooks:
  19. - id: isort
  20. exclude: '(\/|^)lib\/'
  21. args: [ -l, '88']
  22. - repo: https://github.com/psf/black
  23. rev: 23.3.0
  24. hooks:
  25. - id: black
  26. exclude: '(\/|^)lib\/'
  27. - repo: https://github.com/PyCQA/flake8
  28. rev: 6.0.0
  29. hooks:
  30. - id: flake8
  31. exclude: '(\/|^)lib\/'