-
Notifications
You must be signed in to change notification settings - Fork 11
/
.pre-commit-config.yaml
55 lines (47 loc) · 1.26 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
# 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.12.0
hooks:
- id: isort
name: isort imports carl
files: carl/.*
args: [--check]
- id: isort
name: isort imports test
files: test/.*
args: [--check]
- repo: https://github.com/ambv/black
rev: 22.6.0
hooks:
- id: black
name: black formatter carl
files: carl/.*
args: [--check]
- id: black
name: black formatter test
files: test/.*
args: [--check]
- id: black
name: black formatter examples
files: examples/.*
args: [--check]
# This is disabled as most modules fail this
- repo: https://github.com/pycqa/pydocstyle
rev: 6.1.1
hooks:
- id: pydocstyle
files: DISABLED # carl/.*
always_run: false
additional_dependencies: ["toml"] # Needed to parse pyproject.toml
- repo: https://github.com/pycqa/flake8
rev: 6.0.0
hooks:
- id: flake8
name: flake8 carl
files: carl/.*
- id: flake8
name: flake8 test
files: test/.*