blob: dc3011f050fb60c39861636c4331b614ee9aca5c [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: [
ChillarAnand4dc17a82021-10-11 10:37:59 +053024 'flake8-bugbear',
Chillar Anand772d4752021-10-06 22:28:48 +053025 ]
ChillarAnand4dc17a82021-10-11 10:37:59 +053026 args: ['--config', '.github/helper/.flake8_strict']
Ankush Menat0afff862021-09-01 15:43:41 +053027 exclude: ".*setup.py$"
28
Ankush Menat21e00da2022-02-12 12:58:32 +053029 - repo: https://github.com/adityahase/black
30 rev: 9cb0a69f4d0030cdf687eddf314468b39ed54119
31 hooks:
32 - id: black
Ankush Menatd29e3142022-03-29 11:47:28 +053033 additional_dependencies: ['click==8.0.4']
Ankush Menat21e00da2022-02-12 12:58:32 +053034
Chillar Anand915b3432021-09-02 16:44:59 +053035 - repo: https://github.com/timothycrosley/isort
36 rev: 5.9.1
37 hooks:
38 - id: isort
39 exclude: ".*setup.py$"
40
Ankush Menat21e00da2022-02-12 12:58:32 +053041
Ankush Menat0afff862021-09-01 15:43:41 +053042ci:
43 autoupdate_schedule: weekly
44 skip: []
45 submodules: false