-
Notifications
You must be signed in to change notification settings - Fork 605
/
.pre-commit-config.yaml
76 lines (75 loc) · 1.71 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
repos:
- repo: https://github.com/psf/black
rev: 24.4.2
hooks:
- id: black
args: [
"--line-length=100",
"-t", "py39",
"-t", "py310",
"-t", "py311",
]
exclude: ^doc/
- repo: https://github.com/PyCQA/isort
rev: 5.13.2
hooks:
- id: isort
args:
[
"--py",
"311",
"--profile",
"black",
"-l",
"100",
"-o",
"autoray",
"-p",
"./pennylane",
"--skip",
"__init__.py",
"--filter-files",
]
files: ^(pennylane/|tests/)
- repo: https://github.com/gauge-sh/tach-pre-commit
rev: v0.13.1
hooks:
- id: tach
- repo: local
hooks:
- id: pylint
name: pylint
entry: pylint
language: system
types: [python]
args:
[
"-rn", # Only display messages
"-sn", # Don't display the score
"--rcfile=.pylintrc", # Link to your config file
]
exclude: ^(doc/|tests/)
- id: pylint-test
name: pylint-test
entry: pylint
language: system
types: [python]
args:
[
"-rn", # Only display messages
"-sn", # Don't display the score
"--rcfile=tests/.pylintrc", # Link to your config file
]
files: ^tests/
- id: labs-pylint-test
name: labs-pylint-test
entry: pylint
language: system
types: [python]
args:
[
"-rn", # Only display messages
"-sn", # Don't display the score
"--rcfile=tests/.pylintrc", # Link to your config file
]
files: ^pennylane/labs/tests/