| exclude: 'node_modules|.git' |
| - repo: https://github.com/pre-commit/pre-commit-hooks |
| - id: trailing-whitespace |
| exclude: ".*json$|.*txt$|.*csv|.*md" |
| - id: no-commit-to-branch |
| args: ['--branch', 'develop'] |
| - id: check-merge-conflict |
| - repo: https://github.com/pre-commit/mirrors-prettier |
| types_or: [javascript, vue, scss] |
| # Ignore any files that might contain jinja / bundles |
| erpnext/public/js/controllers/.*| |
| erpnext/templates/pages/order.js| |
| erpnext/templates/includes/.* |
| - repo: https://github.com/pre-commit/mirrors-eslint |
| # Ignore any files that might contain jinja / bundles |
| erpnext/public/js/controllers/.*| |
| erpnext/templates/pages/order.js| |
| erpnext/templates/includes/.* |
| - repo: https://github.com/astral-sh/ruff-pre-commit |
| name: "Run ruff linter and apply fixes" |
| name: "Format Python code" |
| autoupdate_schedule: weekly |