2
0

.pre-commit-config.yaml 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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', 'py37']
  11. - repo: https://github.com/timothycrosley/isort
  12. # isort config is in setup.cfg
  13. rev: 5.6.4
  14. hooks:
  15. - id: isort
  16. - repo: https://github.com/pycqa/flake8
  17. # flake8 config is in setup.cfg
  18. rev: 3.8.4
  19. hooks:
  20. - id: flake8
  21. additional_dependencies:
  22. - flake8-comprehensions
  23. - flake8-assertive
  24. - flake8-print
  25. - repo: https://github.com/rtts/djhtml
  26. rev: v1.4.13
  27. hooks:
  28. - id: djhtml
  29. - repo: https://github.com/pre-commit/mirrors-prettier
  30. rev: v2.5.1
  31. hooks:
  32. - id: prettier
  33. types_or: [css, javascript, json, yaml]
  34. - repo: https://github.com/pre-commit/mirrors-eslint
  35. rev: v8.8.0
  36. hooks:
  37. - id: eslint
  38. types: [file]
  39. files: \.(js)$
  40. args: [--report-unused-disable-directives]
  41. additional_dependencies:
  42. - eslint@8.8.0
  43. - repo: https://github.com/thibaudcolas/pre-commit-stylelint
  44. rev: v14.2.0
  45. hooks:
  46. - id: stylelint
  47. files: \.css$
  48. additional_dependencies:
  49. - stylelint@14.9.1
  50. - stylelint-config-standard@26.0.0
  51. - stylelint-config-prettier@9.0.3