This repository has been archived by the owner on Aug 15, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 10
/
setup.cfg
174 lines (154 loc) · 4.35 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
[metadata]
name = yukon
version = file: yukon/VERSION
author = UAVCAN Consortium
author_email = [email protected]
url = https://uavcan.org
description = Rich IDE for developing and maintaining UAVCAN-powered vehicular computing systems.
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
utility
gui
ide
classifiers =
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 :: Utilities
Topic :: Education
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
Environment :: GPU
[options]
zip_safe = False
include_package_data = True
packages = find:
install_requires =
pyuavcan[transport_udp,transport_serial,transport_can_pythoncan] == 1.2.0.b4
ruamel.yaml < 0.16
requests ~= 2.25
[options.packages.find]
# https://setuptools.readthedocs.io/en/latest/setuptools.html#find-namespace-packages
include =
yukon
yukon.*
[options.entry_points]
gui_scripts =
yukon = yukon:main
[options.package_data]
* =
*
*/*
*/*/*
*/*/*/*
*/*/*/*/*
# ---------------------------------------- PYTEST ----------------------------------------
[tool:pytest]
norecursedirs =
yukon/dsdl_src
tests/deps
testpaths = yukon tests
python_files = *.py
python_classes = _UnitTest
python_functions = _unittest_
log_level = DEBUG
log_cli_level = WARNING
log_cli = true
log_file = pytest.log
addopts = --doctest-modules -v -p no:unraisableexception
# ---------------------------------------- MYPY ----------------------------------------
[mypy]
# Python version is not specified to allow checking against different versions.
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
build/lib/yukon/.compiled
[mypy-pytest.*]
ignore_missing_imports = True
[mypy-pydsdl.*]
ignore_missing_imports = True
[mypy-pyuavcan.*]
ignore_missing_imports = True
[mypy-ruamel.*]
ignore_missing_imports = True
follow_imports = skip
# ---------------------------------------- COVERAGE ----------------------------------------
[coverage:run]
data_file = .coverage
branch = True
parallel = True
source =
yukon
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
jobs=0
[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=
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
[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_]*