-
Notifications
You must be signed in to change notification settings - Fork 1.7k
/
.pre-commit-config.yaml
92 lines (90 loc) · 2.51 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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
default_stages: [commit, push, manual]
repos:
- repo: https://github.com/commitizen-tools/commitizen
rev: v2.37.0
hooks:
- id: commitizen
stages: [commit-msg]
- repo: https://github.com/psf/black
rev: 22.3.0
hooks:
- id: black
language_version: python3
- repo: https://github.com/nbQA-dev/nbQA
rev: 1.2.2
hooks:
- id: nbqa-black
- id: nbqa-isort
args: [ --profile=black, --project=ydata_profiling ]
- id: nbqa-pyupgrade
args: [ --py36-plus ]
- repo: https://github.com/asottile/pyupgrade
rev: v2.31.0
hooks:
- id: pyupgrade
args: ['--py37-plus','--exit-zero-even-if-changed']
- repo: https://github.com/pycqa/isort
rev: 5.12.0
hooks:
- id: isort
files: '.*'
args: [ --profile=black, --project=ydata_profiling ]
- repo: https://github.com/mgedmin/check-manifest
rev: "0.47"
hooks:
- id: check-manifest
args: [ "--ignore=src/ydata_profiling/version.py" ]
stages: [manual]
- repo: https://github.com/PyCQA/flake8
rev: "4.0.1"
hooks:
- id: flake8
args: [ "--ignore=E203,E501,W291,W503,SFS301,SIM106" ]
additional_dependencies:
- flake8-comprehensions
- flake8-sfs
- flake8-simplify
- flake8-eradicate
- flake8-print
- repo: https://github.com/PyCQA/flake8
rev: "4.0.1"
hooks:
- id: flake8
name: flake8-annotations
args: [ "--select=ANN001,ANN201,ANN202,ANN205,ANN206,ANN301,C4" ]
additional_dependencies:
- flake8-annotations
- flake8-comprehensions
exclude: |
(?x)(
^tests/|
^docsrc/|
^src/ydata_profiling/utils/common.py|
^src/ydata_profiling/utils/imghdr_patch.py
)
- repo: https://github.com/asottile/blacken-docs
rev: v1.12.1
hooks:
- id: blacken-docs
- repo: https://github.com/pre-commit/mirrors-mypy
rev: 'v0.982'
hooks:
- id: mypy
additional_dependencies:
- types-requests
- types-python-dateutil
- types-PyYAML
- types-setuptools
- repo: https://github.com/sbrugman/tryceratops
rev: v0.6.0
hooks:
- id: tryceratops
args: ["-i", "TC003","--autofix"]
- repo: https://github.com/kynan/nbstripout
rev: 0.5.0
hooks:
- id: nbstripout
ci:
autoupdate_commit_msg: 'ci: pre-commit-config update'
autofix_prs: false
autofix_commit_msg: 'ci: pre-commit auto fixes'