-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
45 lines (45 loc) · 1.74 KB
/
.pre-commit-config.yaml
File metadata and controls
45 lines (45 loc) · 1.74 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.2.0
hooks:
- id: trailing-whitespace # Trims trailing whitespace
- id: end-of-file-fixer # Checks that a file ends in a newline
- id: check-added-large-files # Ensures large files haven't been committed
- id: check-yaml # Checks yaml files have parseable syntax
- id: check-case-conflict # Don't allow names that conflict on a case-insensitive OS
- id: check-merge-conflict # Don't allow merge conflict markers to be committed
- id: debug-statements # Checks for debugger imports or breakpoint calls in python
- repo: https://github.com/psf/black
rev: 22.3.0
hooks:
- id: black
# It is recommended to specify the latest version of Python
# supported by your project here, or alternatively use
# pre-commit's default_language_version, see
# https://pre-commit.com/#top_level-default_language_version
language_version: python3.9
- repo: local
hooks:
- id: pylint
name: pylint
entry: pylint
exclude: backend/tests/common.py
language: system
types: [python]
args:
[
"-rn", # Only display messages
"-sn", # Don't display the score
]
- repo: https://github.com/shellcheck-py/shellcheck-py
rev: v0.8.0.4
hooks:
- id: shellcheck
- repo: https://github.com/lorenzwalthert/pre-commit-hooks
rev: v0.0.0.9016
hooks:
- id: style-files # Style in Tidyverse style with {styler}
- id: parsable-R # Checks that .R files are valid R code
- id: no-browser-statement # Checks that there's no browser() call in .R code
- id: use-tidy-description
- id: lintr # Lints .R files with {lintr}