You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

преди 1 година
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. exclude: 'node_modules|.git'
  2. default_stages: [commit]
  3. fail_fast: false
  4. repos:
  5. - repo: https://github.com/pre-commit/pre-commit-hooks
  6. rev: v4.3.0
  7. hooks:
  8. - id: trailing-whitespace
  9. files: "xhiveframework.*"
  10. exclude: ".*json$|.*txt$|.*csv|.*md|.*svg"
  11. - id: check-yaml
  12. - id: no-commit-to-branch
  13. args: ['--branch', 'develop']
  14. - id: check-merge-conflict
  15. - id: check-ast
  16. - id: check-json
  17. - id: check-toml
  18. - id: check-yaml
  19. - id: debug-statements
  20. - repo: https://github.com/astral-sh/ruff-pre-commit
  21. rev: v0.2.0
  22. hooks:
  23. - id: ruff
  24. name: "Run ruff linter and apply fixes"
  25. args: ["--fix"]
  26. - id: ruff-format
  27. name: "Format Python code"
  28. - repo: https://github.com/pre-commit/mirrors-prettier
  29. rev: v2.7.1
  30. hooks:
  31. - id: prettier
  32. types_or: [javascript, vue, scss]
  33. # Ignore any files that might contain jinja / bundles
  34. exclude: |
  35. (?x)^(
  36. xhiveframework/public/dist/.*|
  37. .*node_modules.*|
  38. .*boilerplate.*|
  39. xhiveframework/www/website_script.js|
  40. xhiveframework/templates/includes/.*|
  41. xhiveframework/public/js/lib/.*|
  42. xhiveframework/website/doctype/website_theme/website_theme_template.scss
  43. )$
  44. - repo: https://github.com/pre-commit/mirrors-eslint
  45. rev: v8.44.0
  46. hooks:
  47. - id: eslint
  48. types_or: [javascript]
  49. args: ['--quiet']
  50. # Ignore any files that might contain jinja / bundles
  51. exclude: |
  52. (?x)^(
  53. xhiveframework/public/dist/.*|
  54. cypress/.*|
  55. .*node_modules.*|
  56. .*boilerplate.*|
  57. xhiveframework/www/website_script.js|
  58. xhiveframework/templates/includes/.*|
  59. xhiveframework/public/js/lib/.*
  60. )$
  61. ci:
  62. autoupdate_schedule: weekly
  63. skip: []
  64. submodules: false