forked from pyvisa/pyvisa
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
128 lines (105 loc) · 3.75 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
[project]
name = "PyVISA"
description = "Python VISA bindings for GPIB, RS232, TCPIP and USB instruments"
readme = "README.rst"
requires-python = ">=3.10"
license = { file = "LICENSE" }
authors = [
{ name = "Torsten Bronger", email = "bronger@physik.rwth-aachen.de" },
{ name = "Gregor Thalhammer" },
{ name = "Hernan E. Grecco", email = "hernan.grecco@gmail.com" },
]
maintainers = [{ name = "Matthieu C. Dartiailh", email = "m.dartiailh@gmail.com" }]
keywords = ["VISA", "GPIB", "USB", "serial", "RS232", "measurement", "acquisition"]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX :: Linux",
"Operating System :: MacOS :: MacOS X",
"Programming Language :: Python",
"Topic :: Scientific/Engineering :: Interface Engine/Protocol Translator",
"Topic :: Software Development :: Libraries :: Python Modules",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
]
dependencies = ["typing_extensions>=4.0.0"]
dynamic = ["version"]
[project.urls]
homepage = "https://github.com/pyvisa/pyvisa"
documentation = "https://pyvisa.readthedocs.io/en/latest/"
repository = "https://github.com/pyvisa/pyvisa"
changelog = "https://github.com/pyvisa/pyvisa/blob/main/CHANGES"
[project.scripts]
pyvisa-shell = "pyvisa.cmd_line_tools:visa_shell"
pyvisa-info = "pyvisa.cmd_line_tools:visa_info"
[build-system]
requires = ["setuptools>=61.2", "wheel", "setuptools_scm[toml]>=3.4.3"]
build-backend = "setuptools.build_meta"
[tool.setuptools_scm]
write_to = "pyvisa/version.py"
write_to_template = """
# This file is auto-generated by setuptools-scm do NOT edit it.
from collections import namedtuple
#: A namedtuple of the version info for the current release.
_version_info = namedtuple("_version_info", "major minor micro status")
parts = "{version}".split(".", 3)
version_info = _version_info(
int(parts[0]),
int(parts[1]),
int(parts[2]),
parts[3] if len(parts) == 4 else "",
)
# Remove everything but the 'version_info' from this module.
del namedtuple, _version_info, parts
__version__ = "{version}"
"""
[tool.ruff]
src = ["src"]
extend-exclude = ["pyvisa/thirdparty/*"]
line-length = 88
[tool.ruff.lint]
select = ["C", "E", "F", "W", "I", "C90", "RUF"]
extend-ignore = ["E501", "RUF012"]
[tool.ruff.lint.isort]
combine-as-imports = true
known-first-party = ["pyvisa"]
[tool.ruff.lint.mccabe]
max-complexity = 20
[tool.pytest.ini_options]
minversion = "6.0"
[tool.mypy]
follow_imports = "normal"
strict_optional = true
[[tool.mypy.overrides]]
module = ["pyvisa.thirdparty.*"]
ignore_errors = true
[tool.coverage]
[tool.coverage.run]
branch = true
source = ["pyvisa"]
omit = [
# Omit the testsuite and thridparty packages that are vendored.
"*/pyvisa/testsuite/*",
"*/pyvisa/thirdparty/*",
]
[tool.coverage.report]
# Regexes for lines to exclude from consideration
exclude_lines = [
# Have to re-enable the standard pragma
"pragma: no cover",
# Don't complain if tests don't hit defensive assertion code:
"raise NotImplementedError",
"pass",
# Don't complain about abstract methods, they aren't run:
"@(abc\\.)?abstractmethod",
# Don't complain about type checking
"if TYPE_CHECKING:",
# Don't complain about ellipsis in overload
"\\.\\.\\.",
]