選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。
 
 
 
 
 
 

68 行
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: "frappe.*"
  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/adityahase/black
  26. rev: 9cb0a69f4d0030cdf687eddf314468b39ed54119
  27. hooks:
  28. - id: black
  29. additional_dependencies: ['click==8.0.4']
  30. - repo: https://github.com/pre-commit/mirrors-prettier
  31. rev: v2.7.1
  32. hooks:
  33. - id: prettier
  34. types_or: [javascript]
  35. # Ignore any files that might contain jinja / bundles
  36. exclude: |
  37. (?x)^(
  38. frappe/public/dist/.*|
  39. .*node_modules.*|
  40. .*boilerplate.*|
  41. frappe/www/website_script.js|
  42. frappe/templates/includes/.*|
  43. frappe/public/js/lib/.*
  44. )$
  45. - repo: https://github.com/timothycrosley/isort
  46. rev: 5.9.1
  47. hooks:
  48. - id: isort
  49. - repo: https://gitlab.com/pycqa/flake8
  50. rev: 3.9.2
  51. hooks:
  52. - id: flake8
  53. additional_dependencies: ['flake8-bugbear',]
  54. args: ['--config', '.github/helper/flake8.conf']
  55. ci:
  56. autoupdate_schedule: weekly
  57. skip: []
  58. submodules: false