-
Notifications
You must be signed in to change notification settings - Fork 377
/
.pre-commit-config.yaml
95 lines (90 loc) · 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: check-yaml
exclude: argilla/mkdocs.yml|examples/deployments/k8s
- id: end-of-file-fixer
exclude_types: [text, jupyter]
- id: trailing-whitespace
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: v0.4.8
hooks:
- id: ruff-format
##############################################################################
# argilla specific hooks
##############################################################################
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: v0.4.8
hooks:
- id: ruff
files: 'argilla/src/.*\.py$'
args:
- --fix
- repo: https://github.com/Lucas-C/pre-commit-hooks
rev: v1.5.5
hooks:
- id: insert-license
name: "Insert license header in Python source files"
files: '^argilla/.*\.py$'
exclude: ^argilla/docs/snippets/
args:
- --license-filepath
- argilla/LICENSE_HEADER
- --fuzzy-match-generates-todo
- repo: https://github.com/kynan/nbstripout
rev: 0.7.1
hooks:
- id: nbstripout
files: '^argilla/.*\.ipynb$'
args:
- --keep-count
- --keep-output
# - --keep-prompt-number
# - --keep-cell-ids
# - --keep-markdown
# - --keep-output-timestamp
# - --keep-execution-count
# - --keep-metadata
# - --keep-version
##############################################################################
# argilla-server specific hooks
##############################################################################
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: v0.4.8
hooks:
- id: ruff
files: 'argila-server/src/.*\.py$'
args:
- --fix
- repo: https://github.com/Lucas-C/pre-commit-hooks
rev: v1.5.5
hooks:
- id: insert-license
name: "Insert license header in Python source files"
files: '^argilla-server/.*\.py$'
args:
- --license-filepath
- argilla-server/LICENSE_HEADER
- --fuzzy-match-generates-todo
##############################################################################
# Helm lint hook
##############################################################################
- repo: https://github.com/gruntwork-io/pre-commit
rev: v0.1.24
hooks:
- id: helmlint
name: Helm lint
files: '^examples/deployments/k8s/.*\.yaml$'
args: ["helm", "lint", "examples/deployments/k8s/"]
ci:
autofix_commit_msg: |
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
autofix_prs: true
autoupdate_branch: ""
autoupdate_commit_msg: "[pre-commit.ci] pre-commit autoupdate"
autoupdate_schedule: weekly
skip:
- helmlint # Disabling helmlint on CI by now because helm dependency is not available
submodules: false