-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.pre-commit-config.yaml
60 lines (52 loc) · 1.5 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
53
54
55
56
57
58
59
60
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.2.0
hooks:
- id: detect-private-key
- id: check-added-large-files
- id: check-merge-conflict
- id: check-executables-have-shebangs
- id: forbid-new-submodules
- id: trailing-whitespace
- id: check-yaml
- id: check-xml
- id: check-json
- id: check-ast
- repo: https://github.com/syntaqx/git-hooks
rev: v0.0.16
hooks:
- id: forbid-binary
- repo: https://github.com/psf/black
rev: 22.3.0
hooks:
- id: black
language_version: python3.10
args: ["--line-length=88"]
- repo: https://github.com/kynan/nbstripout
rev: 0.3.8
hooks:
- id: nbstripout
files: ".ipynb"
- repo: https://gitlab.com/PyCQA/flake8
rev: 4.0.1
hooks:
- id: flake8
args: ["--max-line-length=88", "--ignore=E501,W503,F541"]
- repo: https://github.com/PyCQA/isort
rev: 5.10.1
hooks:
- id: isort
name: isort
args: ["--profile=black", "--line-length=88"]
- repo: https://github.com/humitos/mirrors-autoflake.git
rev: v1.3
hooks:
- id: autoflake
args: [ '--in-place', '--remove-all-unused-imports', '--remove-unused-variable', '--ignore-init-module-imports']
- repo: https://github.com/pre-commit/mirrors-mypy
rev: 'v0.942'
hooks:
- id: mypy
exclude: ^tests/
args: [ '--ignore-missing-imports' ]
additional_dependencies: ['types-cachetools']