2021-09-01 10:13:41 +00:00
|
|
|
exclude: 'node_modules|.git'
|
|
|
|
default_stages: [commit]
|
|
|
|
fail_fast: false
|
|
|
|
|
|
|
|
|
|
|
|
repos:
|
|
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
|
|
rev: v4.0.1
|
|
|
|
hooks:
|
|
|
|
- id: trailing-whitespace
|
|
|
|
files: "erpnext.*"
|
2021-09-01 10:22:16 +00:00
|
|
|
exclude: ".*json$|.*txt$|.*csv|.*md"
|
2021-09-01 10:13:41 +00:00
|
|
|
- id: check-yaml
|
|
|
|
- id: no-commit-to-branch
|
|
|
|
args: ['--branch', 'develop']
|
|
|
|
- id: check-merge-conflict
|
|
|
|
- id: check-ast
|
|
|
|
|
2023-07-14 13:23:02 +00:00
|
|
|
- repo: https://github.com/pre-commit/mirrors-eslint
|
|
|
|
rev: v8.44.0
|
|
|
|
hooks:
|
|
|
|
- id: eslint
|
|
|
|
types_or: [javascript]
|
|
|
|
args: ['--quiet']
|
|
|
|
# Ignore any files that might contain jinja / bundles
|
|
|
|
exclude: |
|
|
|
|
(?x)^(
|
|
|
|
erpnext/public/dist/.*|
|
|
|
|
cypress/.*|
|
|
|
|
.*node_modules.*|
|
|
|
|
.*boilerplate.*|
|
2023-07-22 17:37:18 +00:00
|
|
|
erpnext/public/js/controllers/.*|
|
|
|
|
erpnext/templates/pages/order.js
|
2023-07-14 13:23:02 +00:00
|
|
|
)$
|
|
|
|
|
2022-11-16 10:54:28 +00:00
|
|
|
- repo: https://github.com/PyCQA/flake8
|
2023-07-14 13:23:02 +00:00
|
|
|
rev: 6.0.0
|
2021-09-01 10:13:41 +00:00
|
|
|
hooks:
|
|
|
|
- id: flake8
|
2021-10-06 16:58:48 +00:00
|
|
|
additional_dependencies: [
|
2021-10-11 05:07:59 +00:00
|
|
|
'flake8-bugbear',
|
2021-10-06 16:58:48 +00:00
|
|
|
]
|
2021-10-11 05:07:59 +00:00
|
|
|
args: ['--config', '.github/helper/.flake8_strict']
|
2021-09-01 10:13:41 +00:00
|
|
|
exclude: ".*setup.py$"
|
|
|
|
|
2022-02-12 07:28:32 +00:00
|
|
|
- repo: https://github.com/adityahase/black
|
|
|
|
rev: 9cb0a69f4d0030cdf687eddf314468b39ed54119
|
|
|
|
hooks:
|
|
|
|
- id: black
|
2022-03-29 06:17:28 +00:00
|
|
|
additional_dependencies: ['click==8.0.4']
|
2022-02-12 07:28:32 +00:00
|
|
|
|
2023-01-30 14:28:23 +00:00
|
|
|
- repo: https://github.com/PyCQA/isort
|
|
|
|
rev: 5.12.0
|
2021-09-02 11:14:59 +00:00
|
|
|
hooks:
|
|
|
|
- id: isort
|
2021-09-01 10:13:41 +00:00
|
|
|
exclude: ".*setup.py$"
|
2021-09-02 11:14:59 +00:00
|
|
|
|
2022-02-12 07:28:32 +00:00
|
|
|
|
2021-09-01 10:13:41 +00:00
|
|
|
ci:
|
|
|
|
autoupdate_schedule: weekly
|
|
|
|
skip: []
|
|
|
|
submodules: false
|