.pre-commit-config.yaml 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. default_language_version:
  2. node: system
  3. python: python3
  4. repos:
  5. - repo: https://github.com/psf/black
  6. rev: 22.3.0
  7. hooks:
  8. - id: black
  9. language_version: python3
  10. args: ['--target-version', 'py38']
  11. - repo: https://github.com/astral-sh/ruff-pre-commit
  12. rev: 'v0.0.272'
  13. hooks:
  14. - id: ruff
  15. args: [--fix, --exit-non-zero-on-fix]
  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/thibaudcolas/curlylint
  42. rev: v0.13.1
  43. hooks:
  44. - id: curlylint
  45. args: ['--parse-only']
  46. - repo: https://github.com/rtts/djhtml
  47. rev: v1.5.2
  48. hooks:
  49. - id: djhtml
  50. - repo: https://github.com/returntocorp/semgrep
  51. rev: v1.3.0
  52. hooks:
  53. - id: semgrep
  54. args: ['--config', '.semgrep.yml', '--error']