blob: 93d07485e645480598e3bfcdf21fa0bb7504cb22 [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
Deepesh Garg924cdef2023-07-14 18:53:02 +053019 - repo: https://github.com/pre-commit/mirrors-eslint
20 rev: v8.44.0
21 hooks:
22 - id: eslint
23 types_or: [javascript]
24 args: ['--quiet']
25 # Ignore any files that might contain jinja / bundles
26 exclude: |
27 (?x)^(
28 erpnext/public/dist/.*|
29 cypress/.*|
30 .*node_modules.*|
31 .*boilerplate.*|
32 erpnext/public/js/controllers/.*
33 )$
34
Deepesh Garge81bec52022-11-16 16:24:28 +053035 - repo: https://github.com/PyCQA/flake8
Deepesh Garg924cdef2023-07-14 18:53:02 +053036 rev: 6.0.0
Ankush Menat0afff862021-09-01 15:43:41 +053037 hooks:
38 - id: flake8
Chillar Anand772d4752021-10-06 22:28:48 +053039 additional_dependencies: [
ChillarAnand4dc17a82021-10-11 10:37:59 +053040 'flake8-bugbear',
Chillar Anand772d4752021-10-06 22:28:48 +053041 ]
ChillarAnand4dc17a82021-10-11 10:37:59 +053042 args: ['--config', '.github/helper/.flake8_strict']
Ankush Menat0afff862021-09-01 15:43:41 +053043 exclude: ".*setup.py$"
44
Ankush Menat21e00da2022-02-12 12:58:32 +053045 - repo: https://github.com/adityahase/black
46 rev: 9cb0a69f4d0030cdf687eddf314468b39ed54119
47 hooks:
48 - id: black
Ankush Menatd29e3142022-03-29 11:47:28 +053049 additional_dependencies: ['click==8.0.4']
Ankush Menat21e00da2022-02-12 12:58:32 +053050
Deepesh Garg2bad86d2023-01-30 19:58:23 +053051 - repo: https://github.com/PyCQA/isort
52 rev: 5.12.0
Chillar Anand915b3432021-09-02 16:44:59 +053053 hooks:
54 - id: isort
55 exclude: ".*setup.py$"
56
Ankush Menat21e00da2022-02-12 12:58:32 +053057
Ankush Menat0afff862021-09-01 15:43:41 +053058ci:
59 autoupdate_schedule: weekly
60 skip: []
61 submodules: false