.pre-commit-config.yaml 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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.290'
  13. hooks:
  14. - id: ruff
  15. args: [--fix, --exit-non-zero-on-fix]
  16. - repo: https://github.com/pre-commit/mirrors-prettier
  17. rev: v3.1.0
  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.55.0
  23. hooks:
  24. - id: eslint
  25. types: [file]
  26. files: \.(js)$
  27. args: [--report-unused-disable-directives]
  28. additional_dependencies:
  29. - eslint@8.55.0
  30. - repo: https://github.com/thibaudcolas/pre-commit-stylelint
  31. rev: v15.10.3
  32. hooks:
  33. - id: stylelint
  34. files: \.css$
  35. additional_dependencies:
  36. - stylelint@15.11.0
  37. - stylelint-config-standard@34.0.0
  38. - repo: https://github.com/rtts/djhtml
  39. rev: 3.0.6
  40. hooks:
  41. - id: djhtml