Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
116 lines (102 loc) · 2.9 KB
/
Copy pathpyproject.toml
File metadata and controls
116 lines (102 loc) · 2.9 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
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
[build-system]
requires = ["setuptools>=45", "wheel", "setuptools_scm>=8.1.0"]
build-backend = "setuptools.build_meta"
[project]
name = "PyMeasure"
dynamic = ["version", "readme"]
authors = [
{name = "PyMeasure Developers"}
]
description = "Scientific measurement library for instruments, experiments, and live-plotting"
requires-python = ">=3.10"
keywords = ["measure", "instrument", "experiment control", "automate", "graph", "plot"]
license = {text = "MIT"}
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Operating System :: MacOS",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX",
"Operating System :: Unix",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Topic :: Scientific/Engineering",
]
dependencies = [
"numpy>=1.6.1,<3",
"pandas>=2.1,<4",
"pint",
"pyvisa>=1.9",
"pyserial>=2.7",
]
[project.optional-dependencies]
gui = [
"pyqtgraph>=0.12",
"qtpy>=2.4",
]
tcp = [
"pyzmq>=16.0.2",
"cloudpickle>=0.3.1",
]
tests = [
"pytest>=3.3.0",
"pytest-cov>=4.1.0",
"pytest-qt>=2.4.0",
"pyvisa-sim>=0.4.0",
]
# install pyqt or pyside manually as desired
docs = [
"sphinx>=5.0.0",
"sphinx_rtd_theme>=1.1.0",
"sphinx_autodoc_typehints>=2.3.0",
]
dev = [
"pyright>=1.1.400",
"ruff>=0.16.0",
]
[project.urls]
Repository = "https://github.com/pymeasure/pymeasure"
Issues = "https://github.com/pymeasure/pymeasure/issues"
Documentation = "https://pymeasure.readthedocs.io"
[tool.setuptools]
packages = ["pymeasure"]
license-files = ["LICENSE.txt"]
[tool.setuptools.dynamic]
readme = {file = ["README.rst", "CHANGES.rst"]}
[tool.setuptools_scm]
# write_to = "pymeasure/_version.py"
#[tool.flake8]
## See .flake8, as it does not support pyproject.toml
[tool.black]
line-length = 100
[tool.isort]
profile = "black"
[tool.ruff]
line-length = 100
[tool.ruff.lint]
extend-select = ["E", "E9", "F63", "F7", "F82", "W", "UP", "FURB"]
extend-ignore = ["RUF012", "N999", "DTZ007", "DTZ005"]
external = ["E2", "E3"]
[tool.ruff.lint.extend-per-file-ignores]
"__init__.py" = ["F401"]
"tests/*" = ["RUF012"]
[tool.pytest.ini_options]
filterwarnings = [
"error:Cannot cast.*In a future version:FutureWarning",
]
[tool.pyright]
pythonVersion = "3.10"
typeCheckingMode = "basic"
reportMissingImports = "warning"
reportAttributeAccessIssue = "warning"
reportOptionalSubscript = "warning"
reportOptionalMemberAccess = "warning"
reportIncompatibleMethodOverride = "warning"
reportOperatorIssue = "warning"
reportPrivateImportUsage = "none"
defineConstant = { PYQT6 = true, PYSIDE2 = false, PYQT5 = false, PYSIDE6 = false }