-
Notifications
You must be signed in to change notification settings - Fork 218
/
.pre-commit-config.yaml
45 lines (43 loc) · 1.59 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
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
default_stages: [commit, manual]
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.2.3
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml # Checks yaml files for parsable syntax.
- id: check-json # Checks json files for parsable syntax.
- id: check-added-large-files # Checks for large files that bloat the git repository
- id: check-case-conflict # Check for files that would conflict in case-insensitive filesystems
- id: check-merge-conflict # Check for files that contain merge conflict strings.
- id: debug-statements # Check for debugger imports and py37+ `breakpoint()` calls in python source.
- repo: https://github.com/psf/black
rev: 22.8.0
hooks:
- id: black
- repo: local
hooks:
- id: isort
name: isort
types: [file, python]
language: system
entry: isort
- id: flake8
name: Flake8
types: [file, python]
language: system
files: ^ngboost
entry: flake8
- id: pylint-ngboost
name: pylint on ngboost*
types: [file, python]
language: system
files: ^ngboost
entry: pylint --disable=invalid-name,no-member,missing-docstring,no-self-argument,arguments-differ
- id: pylint-tests
name: pylint on tests*
language: system
files: ^tests
entry: pylint --disable=invalid-name,missing-docstring,too-many-function-args,unused-variable,fixme