blob: 2b3a471f77454f804b2e22cdaf6ca985d6ca08aa [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
Ankush Menat65279c22021-09-01 15:52:16 +053023 args: ['--config', '.github/helper/.flake8_strict']
Ankush Menat0afff862021-09-01 15:43:41 +053024 exclude: ".*setup.py$"
25
Chillar Anand915b3432021-09-02 16:44:59 +053026 - repo: https://github.com/timothycrosley/isort
27 rev: 5.9.1
28 hooks:
29 - id: isort
30 exclude: ".*setup.py$"
31
Ankush Menat0afff862021-09-01 15:43:41 +053032ci:
33 autoupdate_schedule: weekly
34 skip: []
35 submodules: false