forked from argilla-io/argilla
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
83 lines (79 loc) · 2.48 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: check-yaml
exclude: argilla/mkdocs.yml
- 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
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: []
submodules: false