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 | |
| 19 | - repo: https://gitlab.com/pycqa/flake8 |
| 20 | rev: 3.9.2 |
| 21 | hooks: |
| 22 | - id: flake8 |
Ankush Menat | 65279c2 | 2021-09-01 15:52:16 +0530 | [diff] [blame] | 23 | args: ['--config', '.github/helper/.flake8_strict'] |
Ankush Menat | 0afff86 | 2021-09-01 15:43:41 +0530 | [diff] [blame] | 24 | exclude: ".*setup.py$" |
| 25 | |
| 26 | ci: |
| 27 | autoupdate_schedule: weekly |
| 28 | skip: [] |
| 29 | submodules: false |