-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy path.pre-commit-config.yaml
54 lines (52 loc) · 1.75 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
exclude: "/migrations/|^venv/|/email/subject/"
default_stages: [pre-commit]
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: trailing-whitespace
name: Drop trailing whitespace
exclude: man
- id: end-of-file-fixer
name: Fix end of files
- id: check-yaml
name: Check YAML syntax
- id: check-toml
name: Check TOML syntax
# - id: pretty-format-json
# name: Format JSON
- id: check-added-large-files
name: Prevent adding large files
args: ['--maxkb=1024']
- id: check-merge-conflict
name: Check for unhandled merge conflicts
- id: debug-statements
name: Check for debug statements
- id: detect-private-key
name: Detect private keys
# https://lorenzwalthert.github.io/precommit/articles/available-hooks.html
- repo: https://github.com/lorenzwalthert/precommit
rev: v0.4.3.9003
hooks:
- id: style-files
name: Style code to tidyverse conventions
args: [--scope=spaces]
- id: readme-rmd-rendered
name: Ensure README.md is up to date
- id: no-debug-statement
name: Ensure that no debug() statement is committed
- id: no-browser-statement
name: Ensure that no browser() statement is committed
# - id: spell-check
# name: Spellcheck
# - id: deps-in-desc
# name: Ensure that DESCRIPTION lists all dependencies
# args: [--allow_private_imports, --root=R]
- id: use-tidy-description
name: Format DESCRIPTION
# - id: pkgdown
# name: Validate pkgdown.yml
# - id: lintr
# name: Lint code but emit only warnings
# args: [--warn_only]
# verbose: true