25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

66 lines
1.6 KiB

  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/asottile/pyupgrade
  21. rev: v2.34.0
  22. hooks:
  23. - id: pyupgrade
  24. args: ['--py310-plus']
  25. - repo: https://github.com/xhiveframework/black
  26. rev: 951ccf4d5bb0d692b457a5ebc4215d755618eb68
  27. hooks:
  28. - id: black
  29. - repo: https://github.com/pre-commit/mirrors-prettier
  30. rev: v2.7.1
  31. hooks:
  32. - id: prettier
  33. types_or: [javascript]
  34. # Ignore any files that might contain jinja / bundles
  35. exclude: |
  36. (?x)^(
  37. xhiveframework/public/dist/.*|
  38. .*node_modules.*|
  39. .*boilerplate.*|
  40. xhiveframework/www/website_script.js|
  41. xhiveframework/templates/includes/.*|
  42. xhiveframework/public/js/lib/.*
  43. )$
  44. - repo: https://github.com/PyCQA/isort
  45. rev: 5.12.0
  46. hooks:
  47. - id: isort
  48. - repo: https://github.com/PyCQA/flake8
  49. rev: 5.0.4
  50. hooks:
  51. - id: flake8
  52. additional_dependencies: ['flake8-bugbear',]
  53. ci:
  54. autoupdate_schedule: weekly
  55. skip: []
  56. submodules: false