-
Notifications
You must be signed in to change notification settings - Fork 3
/
pyproject.toml
159 lines (143 loc) · 2.85 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
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
[tool.ruff]
line-length = 120
output-format = "concise"
target-version = "py310"
extend-exclude = ["test_*.py", "data.py"]
[tool.ruff.lint]
preview = true
select = [
"F",
"E",
"W",
"I",
"YTT",
# "ANN",
"ASYNC",
"S",
"BLE",
"CPY",
"C4",
# "DTZ",
"T10",
"FA",
"ICN",
"LOG",
"G",
"INP",
"PIE",
"T20",
# "PYI",
# "PT",
"Q",
"RSE",
"RET",
# "SLF",
"SLOT",
# "SIM",
"TID",
"TCH",
# "PTH",
# "TD",
# "PL",
# "NPY",
# "FURB",
# "DOC",
"RUF"
]
ignore = [
"E111",
"E114",
"E117",
"E501",
"D206",
"D300",
"Q000",
"Q001",
"Q002",
"Q003",
"COM812",
"COM819",
"ISC001",
"ISC002",
"E741",
"W191",
"RET504",
"SIM117",
"PLC0414",
"PLC2701",
"PLR0904",
"PLR0911",
"PLR0912",
"PLR0913",
"PLR0914",
"PLR0915",
"PLR0917",
"PLR1702"]
dummy-variable-rgx = "^_$"
logger-objects = ["qililab.logger"]
[tool.ruff.lint.per-file-ignores]
"tests/*" = ["ANN", "S", "CPY", "SLF001", "PLR", "DOC", "RUF012"]
"docs/*" = ["CPY"]
"examples/*" = ["CPY", "T20"]
"src/qililab/about.py" = ["T201"]
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.ruff.lint.pep8-naming]
ignore-names = ["test_*"]
[tool.ruff.lint.flake8-import-conventions.extend-aliases]
"qililab" = "ql"
[tool.ruff.format]
docstring-code-format = true
docstring-code-line-length = "dynamic"
[tool.mypy]
python_version = "3.10"
warn_return_any = false
ignore_missing_imports = true
exclude = [
"\\.ipynb$",
"^tests/.*"
]
[tool.commitizen]
version = "0.16.1"
version_files = [
"src/qililab/config/version.py",
"pyproject.toml:version"
]
tag_format = "$version"
[tool.coverage]
[tool.coverage.report]
show_missing = true
exclude_lines = [
# Have to re-enable the standard pragma
"pragma: no cover",
# Don"t complain about missing debug-only code:
"def __repr__",
"if self.debug",
# Don"t complain if tests don"t hit defensive assertion code:
"raise AssertionError",
"raise NotImplementedError",
# Don"t complain if non-runnable code isn"t run:
"if 0:",
"if __name__ == .__main__.:",
# Don"t complain if TYPE_CHECKING is used:
"if TYPE_CHECKING:"
]
omit = [
"env/*",
"venv/*",
"*/virtualenv/*",
"*/virtualenvs/*",
"*/tests/*",
"examples/*",
# TODO: Remove these once we modernize instruments
"src/qililab/instruments/keithley/keithley_2600.py",
"src/qililab/instruments/qblox/qblox_d5a.py",
"src/qililab/instruments/qblox/qblox_s4g.py"
]
[tool.nbqa.md]
mdformat = true
[tool.pytest.ini_options]
filterwarnings = [
"ignore::DeprecationWarning",
"ignore::PendingDeprecationWarning"
]