-
Notifications
You must be signed in to change notification settings - Fork 253
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
63 lines (60 loc) · 1.64 KB
/
.pre-commit-config.yaml
File metadata and controls
63 lines (60 loc) · 1.64 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: trailing-whitespace
exclude: '\.(svg|yml|csv|xml|cpg|prj)$'
- id: end-of-file-fixer
exclude: '\.(svg|csv|xml|cpg|prj)$'
- id: check-yaml
- id: check-added-large-files
- id: check-json
files: citation_count.json
# Notebooks: run Ruff via nbQA inside .ipynb
- repo: https://github.com/nbQA-dev/nbQA
rev: 1.9.0
hooks:
- id: nbqa-ruff-format
additional_dependencies: [ruff]
language_version: python3.12
files: ^docs/user_guide/examples/.*\.ipynb$
- id: nbqa-ruff
args: ["--fix"]
additional_dependencies: [ruff]
language_version: python3.12
files: ^docs/user_guide/examples/.*\.ipynb$
# Docstrings: auto-format
- repo: local
hooks:
- id: docformatter
name: docformatter
entry: docformatter
language: python
language_version: python3.12
additional_dependencies: [docformatter]
types: [python]
args: ["--in-place"]
files: |
(?x)^(
src/deepforest.*\.py|
fetch_google_scholar\.py
)$
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.14.2
hooks:
- id: ruff-format
files: |
(?x)^(
src/deepforest.*\.py|
fetch_google_scholar\.py
)$
- id: ruff
args: ["--fix"]
files: |
(?x)^(
src/deepforest.*\.py|
fetch_google_scholar\.py
)$
ci:
autofix_prs: false
autoupdate_schedule: quarterly