2021-09-01 10:13:41 +00:00
|
|
|
exclude: 'node_modules|.git'
|
|
|
|
default_stages: [commit]
|
|
|
|
fail_fast: false
|
|
|
|
|
|
|
|
|
|
|
|
repos:
|
|
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
|
|
rev: v4.0.1
|
|
|
|
hooks:
|
|
|
|
- id: trailing-whitespace
|
|
|
|
files: "erpnext.*"
|
2021-09-01 10:22:16 +00:00
|
|
|
exclude: ".*json$|.*txt$|.*csv|.*md"
|
2021-09-01 10:13:41 +00:00
|
|
|
- id: check-yaml
|
|
|
|
- id: no-commit-to-branch
|
|
|
|
args: ['--branch', 'develop']
|
|
|
|
- id: check-merge-conflict
|
|
|
|
- id: check-ast
|
|
|
|
|
|
|
|
- repo: https://gitlab.com/pycqa/flake8
|
|
|
|
rev: 3.9.2
|
|
|
|
hooks:
|
|
|
|
- id: flake8
|
2021-10-06 16:58:48 +00:00
|
|
|
additional_dependencies: [
|
2021-10-11 05:07:59 +00:00
|
|
|
'flake8-bugbear',
|
2021-10-06 16:58:48 +00:00
|
|
|
]
|
2021-10-11 05:07:59 +00:00
|
|
|
args: ['--config', '.github/helper/.flake8_strict']
|
2021-09-01 10:13:41 +00:00
|
|
|
exclude: ".*setup.py$"
|
|
|
|
|
2021-09-02 11:14:59 +00:00
|
|
|
- repo: https://github.com/timothycrosley/isort
|
|
|
|
rev: 5.9.1
|
|
|
|
hooks:
|
|
|
|
- id: isort
|
|
|
|
exclude: ".*setup.py$"
|
|
|
|
|
2021-09-01 10:13:41 +00:00
|
|
|
ci:
|
|
|
|
autoupdate_schedule: weekly
|
|
|
|
skip: []
|
|
|
|
submodules: false
|