-
Notifications
You must be signed in to change notification settings - Fork 50
/
.pre-commit-config.yaml
70 lines (70 loc) · 2.04 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
61
62
63
64
65
66
67
68
69
70
repos:
- repo: https://github.com/timothycrosley/isort
rev: 5.12.0
hooks:
- id: isort
additional_dependencies: [toml]
- repo: https://github.com/python/black
rev: 23.1.0
hooks:
- id: black
- repo: https://github.com/pycqa/flake8
rev: 6.0.0
hooks:
- id: flake8
args: ["--extend-ignore=E203,W503"]
- repo: https://github.com/MarcoGorelli/absolufy-imports
rev: v0.3.1
hooks:
- id: absolufy-imports
- repo: https://github.com/econchick/interrogate
rev: 1.5.0
hooks:
- id: interrogate
exclude: ^(docs|examples|tests|setup.py|versioneer.py)
args: [--config=pyproject.toml]
# yaml formatting
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v3.0.0-alpha.4
hooks:
- id: prettier
types_or: [yaml, markdown]
exclude: ^conda
- repo: https://github.com/codespell-project/codespell
rev: v2.2.2
hooks:
- id: codespell
exclude: retrieval-with-hyperparameter-optimization
- repo: local
hooks:
- id: lint-tensorflow
name: lint-tensorflow
entry: ci/lint_tensorflow.sh
language: script
types: [python]
pass_filenames: false
# - repo: https://github.com/s-weigand/flake8-nb
# rev: v0.3.0
# hooks:
# - id: flake8-nb
# files: \.ipynb$
# - repo: https://github.com/pre-commit/mirrors-mypy
# rev: 'v0.910'
# hooks:
# - id: mypy
# language_version: python3
# args: [--no-strict-optional, --ignore-missing-imports, --show-traceback, --install-types, --non-interactive]
# - repo: https://github.com/mgedmin/check-manifest
# rev: "0.46"
# hooks:
# - id: check-manifest
# args: [--ignore, "*source*"]
# - repo: https://github.com/pycqa/pylint
# rev: pylint-2.7.4
# hooks:
# - id: pylint
# - repo: https://github.com/PyCQA/bandit
# rev: 1.7.0
# hooks:
# - id: bandit
# args: [--verbose, -ll, -x, tests,examples,bench]