forked from HQSquantumsimulations/struqture-qutip-interface
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
120 lines (111 loc) · 2.4 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
[project]
name = "struqture_qutip_interface"
version = "0.1.1"
license = {file="LICENSE"}
authors = [
{name="HQS Quantum Simulation GmbH", email="[email protected]"}
]
maintainers = [
{name="Kirsten Bark", email="[email protected]"}
]
readme = "README.md"
requires-python = ">=3.8"
dependencies = [
'qutip',
"struqture_py>=1.5",
"numpy",
]
[project.optional-dependencies]
tests = [
'pytest-cov',
'pytest'
]
dev = [
'ruff',
'darglint',
'bandit',
'mypy',
'black'
]
docs = [
"sphinx >= 2.1",
"nbsphinx",
"pygments",
"recommonmark",
"myst_parser",
"sphinx_rtd_theme",
"tomli"
]
[build-system]
requires = ["setuptools", "setuptools-scm"]
build-backend = "setuptools.build_meta"
[tool.ruff]
line-length = 99 # same as black
target-version = "py39"
show-fixes = true
show-source = true
# activate the following checks
select = [
"A", # builtins
"ANN", # annotations
"ARG", # unused arguments
"B", # bugbear
"C", # comprehensions
"C90", # mccabe complexity
"D", # pydocstyle
"E", # pycodestyle
"ERA", # remove commented out code
"F", # pyflakes
"NPY", # numpy
"PL", # pylint
"RUF", # ruff
"S", # bandit
"TCH", # type checking
"W", # Warnings
]
# ignore specific violations
ignore = [
"ANN002",
"ANN003",
"ANN101",
"ANN102",
"ANN401",
"D400",
"D401",
# "S403", # not implemented in ruff (yet?!)
# "S404", # not implemented in ruff (yet?!)
"PLR",
"S301",
]
# Allow autofix for all enabled rules (when `--fix`) is provided.
fixable = [
"A", "B", "C", "D", "E", "F", "G", "I", "N", "Q", "S", "T", "W",
"ANN", "ARG", "BLE", "COM", "DJ", "DTZ", "EM", "ERA", "EXE", "FBT",
"ICN", "INP", "ISC", "NPY", "PD", "PGH", "PIE", "PL", "PT", "PTH", "PYI",
"RET", "RSE", "RUF", "SIM", "SLF", "TCH", "TID", "TRY", "UP", "YTT"
]
unfixable = []
# exclude the following patterns from linting
exclude = [
".git",
"__pycache__",
"doc/conf.py",
"old",
"build",
"dist",
"test_*"
]
[tool.ruff.mccabe]
max-complexity = 20 # 5 higher than sonarqube
[tool.ruff.pydocstyle]
convention = "google"
[tool.ruff.per-file-ignores]
"__init__.py" = ["F401"]
[tool.mypy]
ignore_missing_imports = true
pretty = true
follow_imports = "silent"
[tool.bandit]
[tool.black]
line-length = 99
target-version = ['py39', 'py310', 'py311']