-
Notifications
You must be signed in to change notification settings - Fork 86
/
pyproject.toml
74 lines (65 loc) · 2.08 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
[build-system]
requires = ["setuptools >= 67.7.2"]
build-backend = "setuptools.build_meta"
[project]
name = "openant"
description = "ANT, ANT-FS and ANT+ Python Library"
authors = [
{name = "Gustav Tiger", email = "[email protected]"},
{name = "John Whittington"}
]
requires-python = ">=3.8"
license = {file = "LICENSE"}
classifiers = [
"Intended Audience :: Developers",
"Intended Audience :: Healthcare Industry",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Software Development :: Embedded Systems",
"Environment :: Console"
]
dependencies = [
"pyusb>=1.1.1"
]
dynamic = ["readme", "version"]
[project.optional-dependencies]
serial = ["pyserial"]
influx = ["influxdb-client"]
test = ["pytest", "black", "pylint"]
docs = ["sphinx>=5.2.3", "furo>=2021.3.20b30", "sphinx_mdinclude"]
[project.scripts]
openant = "openant.__init__:_main"
[tool.setuptools]
packages = ["openant"]
[tool.setuptools.dynamic]
readme = { file = "README.md" }
version = { attr = "openant.__version__" }
[tool.setuptools.package-data]
openant = ["resources/42-ant-usb-sticks.rules", "examples/*.py"]
[tool.black]
line-length = 88
target-version = ['py37', 'py38', 'py39', 'py310', 'py311', 'py312']
[tool.pylint]
disable = [
"C0103", # (invalid-name)
"C0114", # (missing-module-docstring)
"C0115", # (missing-class-docstring)
"C0116", # (missing-function-docstring)
"R0903", # (too-few-public-methods)
"R0913", # (too-many-arguments)
"R0801", # (similar-lines)
"W1203", # (logging-fstring-interpolation)
"W0107", # (pass-statement)
"R0902",
"C0301", # (line-too-long)
]
[tool.pylint.LOGGING]
logging-format-style = "new"
[tool.pytest.ini_options]
addopts = "--verbose --doctest-modules --ignore=openant/subparsers/influx.py"
doctest_optionflags = "NORMALIZE_WHITESPACE IGNORE_EXCEPTION_DETAIL"
testpaths = "openant"