.pre-commit-config.yaml 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. exclude: 'node_modules|.git'
  2. default_stages: [pre-commit]
  3. fail_fast: false
  4. repos:
  5. - repo: https://github.com/pre-commit/pre-commit-hooks
  6. rev: v5.0.0
  7. hooks:
  8. - id: trailing-whitespace
  9. files: "uperp.*"
  10. exclude: ".*json$|.*txt$|.*csv|.*md|.*svg"
  11. - id: check-merge-conflict
  12. - id: check-ast
  13. - id: check-json
  14. - id: check-toml
  15. - id: check-yaml
  16. - id: debug-statements
  17. - repo: https://github.com/astral-sh/ruff-pre-commit
  18. rev: v0.8.1
  19. hooks:
  20. - id: ruff
  21. name: "Run ruff import sorter"
  22. args: ["--select=I", "--fix"]
  23. - id: ruff
  24. name: "Run ruff linter"
  25. - id: ruff-format
  26. name: "Run ruff formatter"
  27. - repo: https://github.com/pre-commit/mirrors-prettier
  28. rev: v2.7.1
  29. hooks:
  30. - id: prettier
  31. types_or: [javascript, vue, scss]
  32. # Ignore any files that might contain jinja / bundles
  33. exclude: |
  34. (?x)^(
  35. uperp/public/dist/.*|
  36. .*node_modules.*|
  37. .*boilerplate.*|
  38. uperp/templates/includes/.*|
  39. uperp/public/js/lib/.*
  40. )$
  41. - repo: https://github.com/pre-commit/mirrors-eslint
  42. rev: v8.44.0
  43. hooks:
  44. - id: eslint
  45. types_or: [javascript]
  46. args: ['--quiet']
  47. # Ignore any files that might contain jinja / bundles
  48. exclude: |
  49. (?x)^(
  50. uperp/public/dist/.*|
  51. cypress/.*|
  52. .*node_modules.*|
  53. .*boilerplate.*|
  54. uperp/templates/includes/.*|
  55. uperp/public/js/lib/.*
  56. )$
  57. ci:
  58. autoupdate_schedule: weekly
  59. skip: []
  60. submodules: false