-
Notifications
You must be signed in to change notification settings - Fork 2
/
.pre-commit-config.yaml
52 lines (47 loc) · 1.29 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
47
48
49
50
51
52
exclude: 'benchmark|conf|data|docs|outputs'
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v1.2.3
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-added-large-files
args: [--maxkb=15000]
- id: check-yaml
- repo: https://github.com/humitos/mirrors-autoflake.git
rev: v1.3
hooks:
- id: autoflake
args:
[
'--in-place',
'--remove-unused-variable',
'--ignore-init-module-imports',
'--imports=torch,torch_geometric,torch_scatter,torch_cluster,numpy,sklearn,scipy,torch_sparse,torch_points_kernels',
]
- repo: https://github.com/ambv/black
rev: stable
hooks:
- id: black
language_version: python
- repo: https://github.com/kynan/nbstripout
rev: master
hooks:
- id: nbstripout
files: '.ipynb'
# - repo: local
# hooks:
# - id: requirements.txt
# name: Generate requirements.txt
# entry: poetry export
# args:
# [
# '-f',
# 'requirements.txt',
# '-o',
# 'requirements.txt',
# '--without-hashes',
# ]
# pass_filenames: false
# language: system
# files: 'poetry.lock'