-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
56 lines (56 loc) · 1.36 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
56 lines (56 loc) · 1.36 KB
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
default_install_hook_types: [pre-commit, commit-msg]
default_stages: [pre-commit]
exclude: |
(?x)(
^assets/|
^docs/.*.html|
^inst/extdata|
^man/|
^tests/testthat/_snaps/|
^CITATION.cff|
^renv*|
^.*.svg|
^_extension/|
^_freeze/
)
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: check-added-large-files
args: ["--maxkb=12000"]
- id: end-of-file-fixer
- id: trailing-whitespace
# spell check
- repo: https://github.com/codespell-project/codespell
rev: v2.4.2
hooks:
- id: codespell
args: ["-I ./.github/codespell-ignore"]
# Python formatting
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.15.16
hooks:
- id: ruff-check
args: [--fix]
- id: ruff-format
# R formatting
- repo: https://github.com/posit-dev/air-pre-commit
rev: 0.9.0
hooks:
- id: air-format
- repo: https://github.com/lorenzwalthert/precommit
rev: v0.4.3.9025
hooks:
- id: parsable-R
- id: use-tidy-description
- id: lintr
args: [--warn_only]
verbose: true
# enforce commit format
- repo: https://github.com/compilerla/conventional-pre-commit
rev: v4.4.0
hooks:
- id: conventional-pre-commit
stages: [commit-msg]
args: []