-
Notifications
You must be signed in to change notification settings - Fork 2
/
pyproject.toml
137 lines (125 loc) · 2.62 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
[project]
name = "pysweepme"
description = "Load SweepMe! instrument drivers in your own python projects."
readme = "README.md"
requires-python = ">=3.9,<3.12"
license = { file = "LICENSE.txt" }
maintainers = [
{ name = "SweepMe! GmbH", email = "[email protected]" },
]
classifiers = [
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: Microsoft :: Windows",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"Topic :: Scientific/Engineering",
"Topic :: System :: Hardware :: Hardware Drivers",
]
dynamic = ["version"]
dependencies = [
"psutil ~= 5.9.3",
"pythonnet ~= 3.0.0.post1",
"pyserial ~= 3.5",
"PyVISA ~= 1.13.0",
]
[project.optional-dependencies]
dev = [
"tox ~= 4.6.1",
"ruff ~= 0.0.272",
"black ~= 23.3.0",
"mypy ~= 1.3.0",
"pytest ~= 7.3.2"
]
typed = [
"types-psutil ~= 5.9.3",
"types-pyserial ~=3.5",
]
[project.urls]
Homepage = "https://sweep-me.net"
Repository = "https://github.com/SweepMe/pysweepme"
[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"
[tool.setuptools.dynamic]
version = {attr = "pysweepme.__version__"}
[tool.setuptools.packages.find]
where = ["src"]
[tool.ruff]
line-length = 120
target-version = "py39"
src = ["src"]
select = [
"F",
"E", "W",
"C90",
"I",
"N",
"D",
"UP",
"YTT",
"ANN",
"ASYNC",
"S",
"BLE",
"B",
"A",
"COM",
"C4",
"DTZ",
"T10",
"EM",
"FA",
"ISC",
"ICN",
"G",
"INP",
"PIE",
"T20",
"PT",
"Q",
"RSE",
"RET",
"SLF",
"SIM",
"TID",
"INT",
"ARG",
"PTH",
"TD",
"ERA",
"PD",
"PL",
"TRY",
"FLY",
"NPY",
"RUF",
]
ignore = [
"ANN101", "ANN102",
"D203", "D213", "D406", "D407",
"G004", # logging does not have any built-in keyword string interpolation for the message itself, falling back to %s etc. is crap
"UP015", # open mode should be clearly stated, explicit is better than implicit
]
exclude = ["WinFolder.py"]
[tool.ruff.pydocstyle]
convention = "google"
[tool.ruff.flake8-annotations]
allow-star-arg-any = true
[tool.ruff.per-file-ignores]
"tests/*" = ["S101", "SLF001", "INP001"] # Tests should use assert, are allowed to test private internals, and aren't a package
".github/*" = ["INP001"]
[tool.black]
line-length = 120
extend-exclude = 'WinFolder\.py'
[tool.mypy]
strict = true
mypy_path = "src"
exclude = [
'WinFolder\.py',
'^build/'
]
follow_imports = "silent"
[[tool.mypy.overrides]]
module = "clr.*"
ignore_missing_imports = true