blob: e411f11301e237bfdc0b563a0bdc7456264f3207 [file] [log] [blame]
Ankush Menat0afff862021-09-01 15:43:41 +05301exclude: 'node_modules|.git'
2default_stages: [commit]
3fail_fast: false
4
5
6repos:
7 - repo: https://github.com/pre-commit/pre-commit-hooks
8 rev: v4.0.1
9 hooks:
10 - id: trailing-whitespace
11 files: "erpnext.*"
Ankush Menat65279c22021-09-01 15:52:16 +053012 exclude: ".*json$|.*txt$|.*csv|.*md"
Ankush Menat0afff862021-09-01 15:43:41 +053013 - id: check-yaml
14 - id: no-commit-to-branch
15 args: ['--branch', 'develop']
16 - id: check-merge-conflict
17 - id: check-ast
18
19 - repo: https://gitlab.com/pycqa/flake8
20 rev: 3.9.2
21 hooks:
22 - id: flake8
Chillar Anand772d4752021-10-06 22:28:48 +053023 additional_dependencies: [
24 'flake8-mutable',
25 ]
26 args: ['--select=M511', '--config', '.github/helper/.flake8_strict']
Ankush Menat0afff862021-09-01 15:43:41 +053027 exclude: ".*setup.py$"
28
Chillar Anand915b3432021-09-02 16:44:59 +053029 - repo: https://github.com/timothycrosley/isort
30 rev: 5.9.1
31 hooks:
32 - id: isort
33 exclude: ".*setup.py$"
34
Ankush Menat0afff862021-09-01 15:43:41 +053035ci:
36 autoupdate_schedule: weekly
37 skip: []
38 submodules: false