-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
60 lines (53 loc) · 1.67 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
60 lines (53 loc) · 1.67 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
57
58
59
60
exclude: |
(?x)^(
extern/
| RcppTskit/inst/include/tskit/
| RcppTskit/src/tskit/
| RcppTskit/R/RcppExports\.R
| RcppTskit/src/RcppExports\.cpp
)
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: mixed-line-ending
- id: check-yaml
- id: check-added-large-files
- id: check-merge-conflict
# - repo: https://github.com/benjeffery/pre-commit-clang-format
# rev: "1.0"
# hooks:
# - id: clang-format
# verbose: true
- repo: local
hooks:
- id: air-format
name: air format
entry: RcppTskit/tools/run_local_tool.sh air format .
language: system
pass_filenames: false
files: '\.(R|Rmd|rmd|qmd|Qmd)$'
- id: jarl-lint
name: jarl lint
entry: RcppTskit/tools/run_local_tool.sh jarl check .
language: system
pass_filenames: false
files: '\.(R|Rmd|rmd|qmd|Qmd)$'
- id: clang-format
name: clang-format
entry: clang-format -i --style=file
language: system
files: '\.(c|cc|cpp|cxx|h|hh|hpp|hxx)$'
- id: clang-tidy
name: clang-tidy for RcppTskit
entry: RcppTskit/tools/clang_tidy.py
language: system
files: '\.(c|cc|cpp|cxx|h|hh|hpp|hxx)$'
- id: check-sync-between-cpp-and-hpp
name: check sync between cpp and hpp options and defaults
entry: RcppTskit/tools/check_sync_between_cpp_and_hpp.R
language: system
pass_filenames: false
files: '^(RcppTskit/src/RcppTskit\.cpp|RcppTskit/inst/include/RcppTskit_public\.hpp)$'