forked from PennyLaneAI/pennylane
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
57 lines (57 loc) · 1.25 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
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",
"-p",
"./pennylane",
"--skip",
"__init__.py",
"--filter-files",
]
files: ^(pennylane/|tests/)
- 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/