-
Notifications
You must be signed in to change notification settings - Fork 2
/
.pre-commit-config.yaml
77 lines (77 loc) · 2.41 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.0.1
hooks:
- id: end-of-file-fixer
exclude: |
(?x)^(
src/tests/data/good-views.json|
src/tests/data/good-views2.json|
src/tests/data/bad-views.json|
src/tests/data/bad-views2.json|
src/tests/data/pivot-comp-views.json|
src/tests/testthat/_snaps/views-ui/views_metadata_test-001-views.json|
src/tests/testthat/_snaps/views-ui/views_metadata_test-002-views2.json|
src/tests/testthat/_snaps/views-ui/views_import_test-001-views.json|
src/tests/testthat/_snaps/.*\.md|
src/www/default_.*\.css.*|
src/www/miro.*\.js.*|
server/admin/www/model_update\.js.*
)$
- id: trailing-whitespace
- id: check-merge-conflict
- repo: https://github.com/Yelp/detect-secrets
rev: v1.5.0
hooks:
- id: detect-secrets
args: ["--baseline", ".secrets.baseline"]
- repo: https://github.com/pre-commit/mirrors-prettier
rev: "v2.3.2"
hooks:
- id: prettier
files: \.(html)$
- repo: https://github.com/pre-commit/mirrors-eslint
rev: v8.3.0
hooks:
- id: eslint
args: [--fix]
exclude: |
(?x)^(
src/.*|
server/.*|
)$
additional_dependencies:
- repo: https://github.com/lorenzwalthert/precommit
rev: v0.1.3
hooks:
- id: style-files
args: [--style_pkg=styler, --style_fun=tidyverse_style]
exclude: |
(?x)^(
r-src/.*|
scripts/globals.R|
)$
- repo: local
hooks:
- id: lang-schema-fixer
name: language-schema-fixer
entry: Rscript ./scripts/fixSchema.R
language: r
files: ^src/conf/language_schema\.json$
additional_dependencies:
- jsonlite
- id: version-fixer
name: version-fixer
entry: Rscript ./scripts/fixVersion.R
language: r
files: ^src/app\.R$
additional_dependencies:
- jsonlite
- id: fix-dashboard-schema
name: fix-dashboard-schema
entry: node ./scripts/fixConfigSchema.js
language: node
files: ^src/conf/config_schema\.json$