-
Notifications
You must be signed in to change notification settings - Fork 1.3k
/
Copy path.pre-commit-config.yaml
57 lines (48 loc) · 1.35 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
# If you see me, please update my `rev` field using the provided links
# Click the repo and update to latest tags.
# If things break on update, raise an issue
repos:
- repo: https://github.com/pycqa/isort
rev: 5.11.5
hooks:
- id: isort
name: isort imports autosklearn
files: autosklearn/.*
- id: isort
name: isort imports test
files: test/.*
- repo: https://github.com/psf/black
rev: 23.3.0
hooks:
- id: black
name: black formatter autosklearn
files: autosklearn/.*
- id: black
name: black formatter test
files: test/.*
- id: black
name: black formatter examples
files: examples/.*
# This is disabled as most modules fail this
- repo: https://github.com/pycqa/pydocstyle
rev: 6.3.0
hooks:
- id: pydocstyle
files: DISABLED # autosklearn/.*
always_run: false
additional_dependencies: ["toml"] # Needed to parse pyproject.toml
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.2.0
hooks:
- id: mypy
name: mypy auto-sklearn
files: autosklearn/.*
- repo: https://github.com/PyCQA/flake8
rev: 5.0.4
hooks:
- id: flake8
name: flake8 autosklearn
files: autosklearn/.*
- id: flake8
name: flake8 test
files: test/.*