-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
71 lines (67 loc) · 1.92 KB
/
.pre-commit-config.yaml
File metadata and controls
71 lines (67 loc) · 1.92 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
64
65
66
67
68
69
70
71
# 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
rev: "v5.0.0"
hooks:
- id: check-case-conflict
- id: check-merge-conflict
- id: check-toml
- id: check-yaml
- id: check-json
exclude: ^.devcontainer/devcontainer.json
- id: pretty-format-json
exclude: ^.devcontainer/devcontainer.json
args: [--autofix, --no-sort-keys]
- id: end-of-file-fixer
- id: trailing-whitespace
- id: check-added-large-files
name: Check for files larger than 5 MB
args: [ "--maxkb=5120" ]
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: "v0.12.7"
hooks:
- id: ruff
exclude: ^notebooks/.*\.ipynb$
args: [--exit-non-zero-on-fix]
- id: ruff-format
exclude: ^notebooks/.*\.ipynb$
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.17.1
hooks:
- id: mypy
files: ^tests/
additional_dependencies:
- numpy
- pandas
- networkx
- scikit-learn
args:
[
--config-file=pyproject.toml,
]
- repo: https://github.com/Yelp/detect-secrets
rev: v1.5.0
hooks:
- id: detect-secrets
- repo: local
hooks:
- id: detect-ip
name: Detect IP addresses
entry: '^(?!0\.0\.0\.0$)(?!127\.0\.0\.1$)\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}'
language: pygrep
exclude: '^static/|\.lock'
files: .
- id: pytest-with-coverage
name: Run pytest with 100% coverage
language: python
entry: pytest
args:
- --cov=graph_lp
- --cov=tests
- --cov-fail-under=100
- --cov-report=term-missing
additional_dependencies:
- ".[test]"
pass_filenames: false
always_run: true