forked from hardbyte/python-can
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
193 lines (180 loc) · 5.46 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
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
[build-system]
requires = ["setuptools >= 67.7", "setuptools_scm>=8"]
build-backend = "setuptools.build_meta"
[project]
name = "python-can"
dynamic = ["readme", "version"]
description = "Controller Area Network interface module for Python"
authors = [{ name = "python-can contributors" }]
dependencies = [
"wrapt~=1.10",
"packaging >= 23.1",
"typing_extensions>=3.10.0.0",
"msgpack~=1.1.0; platform_system != 'Windows'",
]
requires-python = ">=3.8"
license = { text = "LGPL v3" }
classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Intended Audience :: Developers",
"Intended Audience :: Education",
"Intended Audience :: Information Technology",
"Intended Audience :: Manufacturing",
"Intended Audience :: Telecommunications Industry",
"License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)",
"Natural Language :: English",
"Operating System :: MacOS",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python",
"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",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
"Topic :: Software Development :: Embedded Systems",
"Topic :: Software Development :: Embedded Systems :: Controller Area Network (CAN)",
"Topic :: System :: Hardware :: Hardware Drivers",
"Topic :: System :: Logging",
"Topic :: System :: Monitoring",
"Topic :: System :: Networking",
"Topic :: Utilities",
]
[project.scripts]
can_logconvert = "can.logconvert:main"
can_logger = "can.logger:main"
can_player = "can.player:main"
can_viewer = "can.viewer:main"
[project.urls]
homepage = "https://github.com/hardbyte/python-can"
documentation = "https://python-can.readthedocs.io"
repository = "https://github.com/hardbyte/python-can"
changelog = "https://github.com/hardbyte/python-can/blob/develop/CHANGELOG.md"
[project.optional-dependencies]
lint = [
"pylint==3.2.*",
"ruff==0.7.0",
"black==24.10.*",
"mypy==1.12.*",
]
pywin32 = ["pywin32>=305"]
seeedstudio = ["pyserial>=3.0"]
serial = ["pyserial~=3.0"]
neovi = ["filelock", "python-ics>=2.12"]
canalystii = ["canalystii>=0.1.0"]
cantact = ["cantact>=0.0.7"]
cvector = ["python-can-cvector"]
gs_usb = ["gs_usb>=0.2.1"]
nixnet = ["nixnet>=0.3.2"]
pcan = ["uptime~=3.0.1"]
remote = ["python-can-remote"]
sontheim = ["python-can-sontheim>=0.1.2"]
canine = ["python-can-canine>=0.2.2"]
zlgcan = ["zlgcan-driver-py"]
viewer = [
"windows-curses; platform_system == 'Windows' and platform_python_implementation=='CPython'"
]
mf4 = ["asammdf>=6.0.0"]
[tool.setuptools.dynamic]
readme = { file = "README.rst" }
[tool.setuptools.package-data]
"*" = ["README.rst", "CONTRIBUTORS.txt", "LICENSE.txt", "CHANGELOG.md"]
doc = ["*.*"]
examples = ["*.py"]
can = ["py.typed"]
[tool.setuptools.packages.find]
include = ["can*"]
[tool.setuptools_scm]
# can be empty if no extra settings are needed, presence enables setuptools_scm
[tool.mypy]
warn_return_any = true
warn_unused_configs = true
ignore_missing_imports = true
no_implicit_optional = true
disallow_incomplete_defs = true
warn_redundant_casts = true
warn_unused_ignores = true
exclude = [
"venv",
"^doc/conf.py$",
"^build",
"^test",
"^can/interfaces/__init__.py",
"^can/interfaces/etas",
"^can/interfaces/gs_usb",
"^can/interfaces/ics_neovi",
"^can/interfaces/iscan",
"^can/interfaces/ixxat",
"^can/interfaces/kvaser",
"^can/interfaces/nican",
"^can/interfaces/neousys",
"^can/interfaces/pcan",
"^can/interfaces/serial",
"^can/interfaces/slcan",
"^can/interfaces/socketcan",
"^can/interfaces/systec",
"^can/interfaces/udp_multicast",
"^can/interfaces/usb2can",
"^can/interfaces/virtual",
]
[tool.ruff]
line-length = 100
[tool.ruff.lint]
select = [
"A", # flake8-builtins
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"F", # pyflakes
"E", # pycodestyle errors
"I", # isort
"N", # pep8-naming
"PGH", # pygrep-hooks
"PL", # pylint
"RUF", # ruff-specific rules
"T20", # flake8-print
"TCH", # flake8-type-checking
"UP", # pyupgrade
"W", # pycodestyle warnings
"YTT", # flake8-2020
]
ignore = [
"B026", # star-arg-unpacking-after-keyword-arg
"PLR", # pylint refactor
]
[tool.ruff.lint.per-file-ignores]
"can/interfaces/*" = [
"E501", # Line too long
"F403", # undefined-local-with-import-star
"F405", # undefined-local-with-import-star-usage
"N", # pep8-naming
"PGH003", # blanket-type-ignore
"RUF012", # mutable-class-default
]
"can/logger.py" = ["T20"] # flake8-print
"can/player.py" = ["T20"] # flake8-print
[tool.ruff.lint.isort]
known-first-party = ["can"]
[tool.pylint]
disable = [
"c-extension-no-member",
"cyclic-import",
"duplicate-code",
"fixme",
"invalid-name",
"missing-class-docstring",
"missing-function-docstring",
"missing-module-docstring",
"no-else-raise",
"no-else-return",
"too-few-public-methods",
"too-many-arguments",
"too-many-branches",
"too-many-instance-attributes",
"too-many-locals",
"too-many-public-methods",
"too-many-statements",
]