-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
72 lines (62 loc) · 2.12 KB
/
pyproject.toml
File metadata and controls
72 lines (62 loc) · 2.12 KB
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
[build-system]
requires = ["setuptools>=77", "wheel", "setuptools_scm"]
build-backend = "setuptools.build_meta"
[project]
name = "graphix-qasm-parser"
authors = [
{ name = "Thierry Martinez", email = "Thierry.Martinez@inria.fr" },
]
maintainers = [
{ name = "Thierry Martinez", email = "Thierry.Martinez@inria.fr" },
]
license-files = ["LICENSE"]
dynamic = ["version", "dependencies", "optional-dependencies"]
[tool.setuptools_scm]
version_file = "graphix_qasm_parser/_version.py"
[tool.setuptools.dynamic]
dependencies = { file = ["requirements.txt"] }
[tool.setuptools.dynamic.optional-dependencies]
dev = { file = ["requirements-dev.txt"] }
[tool.ruff]
line-length = 120
[tool.ruff.lint]
select = ["ALL"]
# Allow "α" (U+03B1 GREEK SMALL LETTER ALPHA) which could be confused for "a"
# Allow "×" (U+00D7 MULTIPLICATION SIGN) which could be confused for "x"
allowed-confusables = ["α", "×"]
extend-ignore = [
"D203", # `incorrect-blank-line-before-class` (D203) and `no-blank-line-before-class` (D211) are incompatible.
"D212", # `multi-line-summary-first-line` (D212) and `multi-line-summary-second-line` (D213) are incompatible.
"COM812", # The following rule may cause conflicts when used with the formatter: `COM812`.
"PLR2004", # Magic value used in comparison
"E501", # Line too long
]
[tool.ruff.lint.per-file-ignores]
"tests/*.py" = [
"S101", # Use of `assert`
]
[tool.ruff.format]
docstring-code-format = true
[tool.mypy]
# Keep in sync with pyright
files = ["*.py", "graphix_qasm_parser"]
# For antlr4
ignore_missing_imports = true
follow_untyped_imports = true
strict = true
[tool.pyright]
# Keep in sync with pyright
files = ["*.py", "graphix_qasm_parser"]
typeCheckingMode = "strict"
# For antlr4
reportMissingImports = "none"
reportMissingTypeStubs = "none"
reportUnknownVariableType = "none"
reportUnknownMemberType = "none"
reportUnknownParameterType = "none"
reportUnknownArgumentType = "none"
# reportUnknownArgumentType = "information"
reportUnknownLambdaType = "information"
#reportUnknownMemberType = "information"
# reportUnknownParameterType = "information"
# reportUnknownVariableType = "information"