-
Notifications
You must be signed in to change notification settings - Fork 183
/
Copy path.pre-commit-config.yaml
46 lines (43 loc) · 1.03 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
repos:
- repo: local
hooks:
- id: update-citations
name: Update citation count
entry: bash -c 'python fetch_google_scholar.py && git add citation_count.json'
language: system
pass_filenames: false
always_run: true
stages: [pre-commit]
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files
- id: check-json
files: citation_count.json
- repo: https://github.com/google/yapf
rev: v0.40.1
hooks:
- id: yapf
language: python
additional_dependencies: [toml]
args: ['-i', '--style', '.style.yapf']
files: |
(?x)^(
src/deepforest.*\.py|
fetch_google_scholar\.py
)$
- repo: local
hooks:
- id: docformatter
name: docformatter
entry: docformatter
language: system
types: [python]
args: ['--in-place']
files: |
(?x)^(
src/deepforest.*\.py
)$