forked from OpenCyphal/yakut
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.cfg
207 lines (182 loc) · 5.21 KB
/
setup.cfg
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
194
195
196
197
198
199
200
201
202
203
204
205
206
207
[metadata]
name = yakut
version = file: yakut/VERSION
author = OpenCyphal
author_email = [email protected]
url = https://opencyphal.org
description = Simple CLI tool for diagnostics and debugging of Cyphal networks.
long_description = file: README.md
long_description_content_type = text/markdown
license = MIT
keywords =
uavcan
data-bus
can-bus
ethernet
vehicular
onboard-networking
avionics
communication-protocol
cli
utility
classifiers =
Environment :: Console
Intended Audience :: Developers
Intended Audience :: Customer Service
Intended Audience :: Science/Research
Topic :: Scientific/Engineering
Topic :: Scientific/Engineering :: Interface Engine/Protocol Translator
Topic :: Scientific/Engineering :: Visualization
Topic :: Software Development :: Object Brokering
Topic :: System :: Distributed Computing
Topic :: System :: Networking
Topic :: System :: Monitoring
Topic :: Terminals
Topic :: Utilities
License :: OSI Approved :: MIT License
Programming Language :: Python
Programming Language :: Python :: 3
Operating System :: POSIX :: Linux
Operating System :: Microsoft :: Windows
Operating System :: MacOS
Typing :: Typed
[options]
zip_safe = False
include_package_data = True
packages = find:
install_requires =
pycyphal[transport-udp,transport-serial,transport-can-pythoncan] ~= 1.8
ruamel.yaml < 0.18
requests ~= 2.27
simplejson ~= 3.17
coloredlogs ~= 15.0
click ~= 8.1
psutil ~= 5.9
scipy ~= 1.8
[options.extras_require]
joystick =
# SDL2 bindings. For Windows and macOS there are pre-built SDL2 binaries provided.
pysdl2 < 2.0
pysdl2-dll ~= 2.0; sys_platform == "win32" or sys_platform == "darwin"
# MIDI controller support.
mido ~= 1.2
python-rtmidi ~= 1.4
[options.packages.find]
# https://setuptools.readthedocs.io/en/latest/setuptools.html#find-namespace-packages
include =
yakut
yakut.*
[options.entry_points]
console_scripts =
yakut = yakut:main
y = yakut:main
[options.package_data]
* =
*
*/*
*/*/*
*/*/*/*
*/*/*/*/*
# ---------------------------------------- PYTEST ----------------------------------------
[tool:pytest]
norecursedirs =
tests/deps
testpaths = yakut tests
python_files = *.py
python_classes = _UnitTest
python_functions = _unittest_
log_level = DEBUG
log_cli_level = WARNING
log_cli = true
log_file = pytest.log
# Unraisable exceptions are filtered because PyTest yields false-positives coming from PyCyphal.
addopts = --doctest-modules -v -p no:unraisableexception
asyncio_mode = auto
# ---------------------------------------- MYPY ----------------------------------------
[mypy]
# Python version is not specified to allow checking against different versions.
exclude = venv
warn_return_any = True
warn_unused_configs = True
disallow_untyped_defs = True
check_untyped_defs = True
no_implicit_optional = True
warn_redundant_casts = True
warn_unused_ignores = True
show_error_context = True
strict_equality = True
implicit_reexport = False
# We don't want MyPy to go checking generated code and its dependencies.
follow_imports = silent
mypy_path =
.compiled
[mypy-pytest.*]
ignore_missing_imports = True
[mypy-pydsdl.*]
ignore_missing_imports = True
[mypy-pycyphal.*]
ignore_missing_imports = True
[mypy-numpy.*]
ignore_missing_imports = True
[mypy-scipy.*]
ignore_missing_imports = True
[mypy-ruamel.*]
ignore_missing_imports = True
follow_imports = skip
[mypy-click]
follow_imports = silent
# ---------------------------------------- COVERAGE ----------------------------------------
[coverage:run]
data_file = .coverage
branch = True
parallel = True
source =
yakut
tests
[coverage:report]
exclude_lines =
pragma: no cover
def __repr__
raise AssertionError
raise NotImplementedError
assert False
if False:
if __name__ == .__main__.:
# ---------------------------------------- PYLINT ----------------------------------------
[pylint.MASTER]
fail-under=9.9
[pylint.MESSAGES CONTROL]
# Valid levels: HIGH, INFERENCE, INFERENCE_FAILURE, UNDEFINED.
confidence=UNDEFINED
# Advanced semantic analysis is broken in PyLint so we just disable these checks since they add nothing but noise.
# These aspects are addressed by MyPy in a more sensible way.
disable=
cyclic-import,
useless-import-alias,
f-string-without-interpolation,
import-outside-toplevel,
fixme,
too-few-public-methods,
inconsistent-return-statements,
too-many-arguments,
import-error,
misplaced-comparison-constant,
unsubscriptable-object,
too-many-statements,
too-many-instance-attributes,
eval-used,
unspecified-encoding,
not-callable,
unbalanced-tuple-unpacking
[pylint.REPORTS]
output-format=colorized
[pylint.DESIGN]
max-branches=20
max-locals=30
[pylint.FORMAT]
max-line-length=120
max-module-lines=3000
[pylint.BASIC]
variable-rgx=[a-z_][a-z0-9_]*
[pylint.SIMILARITIES]
min-similarity-lines=20