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.
 
 
 
 

46 lines
1.0 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.0.1
  7. hooks:
  8. - id: trailing-whitespace
  9. files: "erpnext.*"
  10. exclude: ".*json$|.*txt$|.*csv|.*md"
  11. - id: check-yaml
  12. - id: no-commit-to-branch
  13. args: ['--branch', 'develop']
  14. - id: check-merge-conflict
  15. - id: check-ast
  16. - repo: https://gitlab.com/pycqa/flake8
  17. rev: 3.9.2
  18. hooks:
  19. - id: flake8
  20. additional_dependencies: [
  21. 'flake8-bugbear',
  22. ]
  23. args: ['--config', '.github/helper/.flake8_strict']
  24. exclude: ".*setup.py$"
  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/timothycrosley/isort
  31. rev: 5.9.1
  32. hooks:
  33. - id: isort
  34. exclude: ".*setup.py$"
  35. ci:
  36. autoupdate_schedule: weekly
  37. skip: []
  38. submodules: false