Ankush Menat | 0afff86 | 2021-09-01 15:43:41 +0530 | [diff] [blame] | 1 | exclude: 'node_modules|.git' |
| 2 | default_stages: [commit] |
| 3 | fail_fast: false |
| 4 | |
| 5 | |
| 6 | repos: |
| 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 Menat | 65279c2 | 2021-09-01 15:52:16 +0530 | [diff] [blame] | 12 | exclude: ".*json$|.*txt$|.*csv|.*md" |
Ankush Menat | 0afff86 | 2021-09-01 15:43:41 +0530 | [diff] [blame] | 13 | - id: check-yaml |
| 14 | - id: no-commit-to-branch |
| 15 | args: ['--branch', 'develop'] |
| 16 | - id: check-merge-conflict |
| 17 | - id: check-ast |
| 18 | |
Deepesh Garg | e81bec5 | 2022-11-16 16:24:28 +0530 | [diff] [blame] | 19 | - repo: https://github.com/PyCQA/flake8 |
| 20 | rev: 5.0.4 |
Ankush Menat | 0afff86 | 2021-09-01 15:43:41 +0530 | [diff] [blame] | 21 | hooks: |
| 22 | - id: flake8 |
Chillar Anand | 772d475 | 2021-10-06 22:28:48 +0530 | [diff] [blame] | 23 | additional_dependencies: [ |
ChillarAnand | 4dc17a8 | 2021-10-11 10:37:59 +0530 | [diff] [blame] | 24 | 'flake8-bugbear', |
Chillar Anand | 772d475 | 2021-10-06 22:28:48 +0530 | [diff] [blame] | 25 | ] |
ChillarAnand | 4dc17a8 | 2021-10-11 10:37:59 +0530 | [diff] [blame] | 26 | args: ['--config', '.github/helper/.flake8_strict'] |
Ankush Menat | 0afff86 | 2021-09-01 15:43:41 +0530 | [diff] [blame] | 27 | exclude: ".*setup.py$" |
| 28 | |
Ankush Menat | 21e00da | 2022-02-12 12:58:32 +0530 | [diff] [blame] | 29 | - repo: https://github.com/adityahase/black |
| 30 | rev: 9cb0a69f4d0030cdf687eddf314468b39ed54119 |
| 31 | hooks: |
| 32 | - id: black |
Ankush Menat | d29e314 | 2022-03-29 11:47:28 +0530 | [diff] [blame] | 33 | additional_dependencies: ['click==8.0.4'] |
Ankush Menat | 21e00da | 2022-02-12 12:58:32 +0530 | [diff] [blame] | 34 | |
Chillar Anand | 915b343 | 2021-09-02 16:44:59 +0530 | [diff] [blame] | 35 | - repo: https://github.com/timothycrosley/isort |
| 36 | rev: 5.9.1 |
| 37 | hooks: |
| 38 | - id: isort |
| 39 | exclude: ".*setup.py$" |
| 40 | |
Ankush Menat | 21e00da | 2022-02-12 12:58:32 +0530 | [diff] [blame] | 41 | |
Ankush Menat | 0afff86 | 2021-09-01 15:43:41 +0530 | [diff] [blame] | 42 | ci: |
| 43 | autoupdate_schedule: weekly |
| 44 | skip: [] |
| 45 | submodules: false |