.pre-commit-config.yaml 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. default_language_version:
  2. node: system
  3. repos:
  4. - repo: https://github.com/timothycrosley/isort
  5. # isort config is in setup.cfg
  6. rev: 5.6.4
  7. hooks:
  8. - id: isort
  9. language_version: python3
  10. - repo: https://gitlab.com/pycqa/flake8
  11. # flake8 config is in setup.cfg
  12. rev: 3.8.4
  13. hooks:
  14. - id: flake8
  15. language_version: python3
  16. - repo: https://github.com/pre-commit/mirrors-prettier
  17. rev: v2.5.1
  18. hooks:
  19. - id: prettier
  20. types_or: [css, scss, javascript, ts, tsx, json, yaml]
  21. - repo: https://github.com/pre-commit/mirrors-eslint
  22. rev: v8.8.0
  23. hooks:
  24. - id: eslint
  25. types: [file]
  26. files: \.(js|ts|tsx)$
  27. args: [--report-unused-disable-directives]
  28. additional_dependencies:
  29. - eslint@8.8.0
  30. - '@typescript-eslint/eslint-plugin@5.10.1'
  31. - '@typescript-eslint/parser@5.10.1'
  32. - '@wagtail/eslint-config-wagtail@0.4.0'
  33. - repo: https://github.com/thibaudcolas/pre-commit-stylelint
  34. rev: v14.2.0
  35. hooks:
  36. - id: stylelint
  37. files: \.scss$
  38. additional_dependencies:
  39. - stylelint@14.2.0
  40. - '@wagtail/stylelint-config-wagtail@0.3.2'
  41. - repo: https://github.com/rtts/djhtml
  42. rev: v1.4.13
  43. hooks:
  44. - id: djhtml