forked from Draegerwerk/sdc11073
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
139 lines (127 loc) · 5.52 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
138
139
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "sdc11073"
dynamic = ["version"]
authors = [
{ name = "Bernd Deichmann", email = "[email protected]" },
{ name = "Leon Budnick", email = "[email protected]" },
]
description = "Pure python implementation of IEEE11073 SDC protocol"
readme = "README.rst"
requires-python = ">=3.9, <3.12"
classifiers = [
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'Topic :: Software Development',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Operating System :: Microsoft :: Windows',
'Operating System :: POSIX :: Linux'
]
keywords = [
"SDC",
"IEEE11073",
]
dependencies = [
'lxml>=2.3',
'ifaddr',
'aiohttp',
]
[project.urls]
"Homepage" = "https://github.com/Draegerwerk/sdc11073"
"Bug Tracker" = "https://github.com/Draegerwerk/sdc11073/issues"
[project.optional-dependencies]
lz4 = [
'lz4',
]
test = [
"pytest",
"pytest-html",
"pytest-cov",
"sdc11073[lz4]",
]
[tool.hatch.build.targets.sdist]
include = [
"src/sdc11073/**/*",
"docs/*", # include picture for readme
"LICENSE",
"README.rst",
"pyproject.toml",
"CHANGELOG.md"
]
support-legacy = false
[tool.hatch.build.targets.wheel]
packages = ["src/sdc11073"]
[tool.hatch.version]
path = "src/sdc11073/__init__.py"
[tool.pytest.ini_options]
testpaths = "tests/"
[tool.ruff]
extend-select = [# https://beta.ruff.rs/docs/settings/#extend-select
"A", # https://beta.ruff.rs/docs/rules/#flake8-builtins-a
"ANN", # https://beta.ruff.rs/docs/rules/#flake8-annotations-ann
"ARG", # https://beta.ruff.rs/docs/rules/#flake8-unused-arguments-arg
"B", # https://beta.ruff.rs/docs/rules/#flake8-bugbear-b
"BLE", # https://beta.ruff.rs/docs/rules/#flake8-blind-except-ble
"C4", # https://beta.ruff.rs/docs/rules/#flake8-comprehensions-c4
"C90", # https://beta.ruff.rs/docs/rules/#mccabe-c90
"COM", # https://beta.ruff.rs/docs/rules/#flake8-commas-com
"D", # https://beta.ruff.rs/docs/rules/#pydocstyle-d
"ERA", # https://beta.ruff.rs/docs/rules/#eradicate-era
"G", # https://beta.ruff.rs/docs/rules/#flake8-logging-format-g
"I", # https://beta.ruff.rs/docs/rules/#isort-i
"ICN", # https://beta.ruff.rs/docs/rules/#flake8-import-conventions-icn
"INP", # https://beta.ruff.rs/docs/rules/#flake8-no-pep420-inp
"ISC", # https://beta.ruff.rs/docs/rules/#flake8-implicit-str-concat-isc
"ICN", # https://beta.ruff.rs/docs/rules/#flake8-import-conventions-icn
"N", # https://beta.ruff.rs/docs/rules/#pep8-naming-n
"PGH", # https://beta.ruff.rs/docs/rules/#pygrep-hooks-pgh
"PIE", # https://beta.ruff.rs/docs/rules/#flake8-pie-pie
"PL", # https://beta.ruff.rs/docs/rules/#pylint-pl
# "PT", # https://beta.ruff.rs/docs/rules/#flake8-pytest-style-pt
"PTH", # https://beta.ruff.rs/docs/rules/#flake8-use-pathlib-pth
"PYI", # https://beta.ruff.rs/docs/rules/#flake8-pyi-pyi
"Q", # https://beta.ruff.rs/docs/rules/#flake8-quotes-q
"RET", # https://beta.ruff.rs/docs/rules/#flake8-return-ret
"RSE", # https://beta.ruff.rs/docs/rules/#flake8-raise-rse
"RUF", # https://beta.ruff.rs/docs/rules/#ruff-specific-rules-ruf
"S", # https://beta.ruff.rs/docs/rules/#flake8-bandit-s
"SIM", # https://beta.ruff.rs/docs/rules/#flake8-simplify-sim
"SLF", # https://beta.ruff.rs/docs/rules/#flake8-self-slf
"T20", # https://beta.ruff.rs/docs/rules/#flake8-print-t20
"TCH", # https://beta.ruff.rs/docs/rules/#flake8-type-checking-tch
"TID", # https://beta.ruff.rs/docs/rules/#flake8-tidy-imports-tid
"UP", # https://beta.ruff.rs/docs/rules/#pyupgrade-up
"YTT" # https://beta.ruff.rs/docs/rules/#flake8-2020-ytt
]
extend-ignore = [# https://beta.ruff.rs/docs/settings/#extend-ignore
"ANN101", # https://beta.ruff.rs/docs/rules/missing-type-self/
"ANN102", # https://beta.ruff.rs/docs/rules/missing-type-cls/
"ANN401", # https://beta.ruff.rs/docs/rules/any-type/
"C408", # https://beta.ruff.rs/docs/rules/unnecessary-collection-call/
"C409", # https://beta.ruff.rs/docs/rules/unnecessary-literal-within-tuple-call/
"D107", # undocumented-public-init
"D203", # one-blank-line-before-class
"D213", # multi-line-summary-second-line
"Q000", # https://beta.ruff.rs/docs/rules/bad-quotes-inline-string/
"S101", # https://beta.ruff.rs/docs/rules/assert/
"SIM102", # collapsible-if
"T201", # https://beta.ruff.rs/docs/rules/print/
]
line-length = 120 # https://beta.ruff.rs/docs/settings/#line-length
target-version = "py39" # https://beta.ruff.rs/docs/settings/#target-version
# Allow imports relative to the "src" and "test" directories.
src = ["src", "test"] # https://beta.ruff.rs/docs/settings/#src
# In addition to the standard set of exclusions, omit all tutorials and examples
extend-exclude = ["examples", "tools", "tutorial"] # https://beta.ruff.rs/docs/settings/#extend-exclude
[tool.ruff.flake8-annotations]
allow-star-arg-any = true # https://beta.ruff.rs/docs/settings/#allow-star-arg-any
suppress-none-returning = true # https://beta.ruff.rs/docs/settings/#suppress-none-returning
[tool.ruff.flake8-comprehensions]
allow-dict-calls-with-keyword-arguments = true # https://beta.ruff.rs/docs/settings/#allow-dict-calls-with-keyword-arguments
[tool.ruff.pycodestyle]
max-doc-length = 120 # https://beta.ruff.rs/docs/settings/#max-doc-length