-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
37 lines (37 loc) · 1.29 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
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
# These are generic hooks to keep files clean and tidy
rev: v5.0.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files
- id: check-merge-conflict
- id: debug-statements
- repo: https://github.com/astral-sh/ruff-pre-commit
# This is python specific linting and formatting using ruff
rev: v0.9.3
hooks:
- id: ruff # Run the linter.
args: [--fix, --exit-non-zero-on-fix]
- id: ruff-format # Run the formatter.
- repo: https://github.com/igorshubovych/markdownlint-cli
# This is markdown linting
rev: v0.44.0
hooks:
- id: markdownlint
- repo: https://github.com/lorenzwalthert/precommit
# These are R specific tools to format and lint the code and check for common errors
rev: v0.4.3.9003
hooks:
- id: style-files
args: [--style_pkg=styler, --indent_by=4, --style_fun=tidyverse_style]
- id: lintr
- id: readme-rmd-rendered
- id: parsable-R
- id: no-browser-statement
- id: no-debug-statement
- id: deps-in-desc