forked from frappe/hrms
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
49 lines (43 loc) · 1.3 KB
/
.pre-commit-config.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
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: "hrms.*"
exclude: ".*json$|.*txt$|.*csv|.*md"
- id: check-yaml
- id: no-commit-to-branch
args: ['--branch', 'develop']
- id: check-merge-conflict
- id: check-ast
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v3.1.0
hooks:
- id: prettier
types_or: [javascript, ts, vue, css, scss]
# Ignore frontend folder and any files that might contain jinja / bundles
exclude: |
(?x)^(
frontend/.*|
hrms/public/dist/.*|
.*node_modules.*|
.*boilerplate.*|
hrms/templates/includes/.*|
hrms/hr/doctype/employee_promotion/employee_promotion.js|
hrms/hr/doctype/employee_transfer/employee_transfer.js|
)$
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.3.7
hooks:
- id: ruff
name: "Run ruff linter and apply fixes"
args: ["--fix"]
- id: ruff-format
name: "Format Python code"
ci:
autoupdate_schedule: weekly
skip: []
submodules: false