forked from ProjectQ-Framework/ProjectQ
-
Notifications
You must be signed in to change notification settings - Fork 2
/
pyproject.toml
123 lines (98 loc) · 2.49 KB
/
pyproject.toml
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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
[build-system]
requires = ["setuptools>=45", "wheel", "pybind11>=2.6.2", "setuptools_scm[toml]>=6"]
build-backend = "setuptools.build_meta"
# ==============================================================================
[tool.black]
line-length = 120
target-version = ['py36','py37','py38']
skip-string-normalization = true
[tool.check-manifest]
ignore = [
'PKG-INFO',
'*.egg-info',
'*.egg-info/*',
'setup.cfg',
'.hgtags',
'.hgsigs',
'.hgignore',
'.gitignore',
'.bzrignore',
'.gitattributes',
'.github/*',
'.travis.yml',
'Jenkinsfile',
'*.mo',
'.clang-tidy',
'.clang-format',
'.gitmodules',
'requirements.txt',
'requirements_tests.txt',
'VERSION.txt',
'.editorconfig',
'*.yml',
'*.yaml',
'docs/*',
'docs/images/*',
'examples/*',
'scripts/*',
'toolchain/*',
'*.rst',
'logo.png',
]
[tool.coverage]
[tool.coverage.run]
omit = [
'*_test.py',
'*_fixtures.py'
]
[tool.pylint]
[tool.pylint.master]
ignore-patterns = [
'__init__.py',
'.*_test.py',
'.*_fixtures.py',
'.*flycheck.*.py',
]
extension-pkg-whitelist = [
'math',
'cmath',
'unicodedata',
]
extension-pkg-allow-list = [
'math',
'cmath',
'unicodedata',
]
[tool.pylint.basic]
good-names = ['qb', 'id', 'i', 'j', 'k', 'N', 'op', 'Zero', 'One',
'X', 'Y', 'Z', 'R', 'U', 'U1', 'U2', 'U3', 'fSim', 'fSimParam', 'fSimNum', 'C', 'CRz']
[tool.pylint.format]
max-line-length = 120
[tool.pylint.reports]
msg-template = '{path}:{line}: [{msg_id}, {obj}] {msg} ({symbol})'
[tool.pylint.similarities]
min-similarity-lines = 20
[tool.pylint.messages_control]
disable = [
'expression-not-assigned',
'pointless-statement',
'no-name-in-module', # due to dynamic importing of symbols
'fixme'
]
[tool.pytest.ini_options]
minversion = '6.0'
addopts = '-pno:warnings'
testpaths = ['projectq']
norecursedirs = 'third_party'
ignore-glob = ['*flycheck*.py']
mock_use_standalone_module = true
[tool.isort]
profile = "black"
[tool.setuptools_scm]
write_to = 'VERSION.txt'
write_to_template = '{version}'
local_scheme = 'no-local-version'
fallback_version = 'v1.0.6'
tag_regex = '^(?:[\w-]+-|projectq(?:[0-9]+.){0,2}[0-9]+-HiQ)?(?P<version>[vV]?\d+(?:\.\d+){0,2}[^\+]*)(?:\+.*)?$'
[tool.yapf]
column_limit = 120