forked from ArduPilot/MethodicConfigurator
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
348 lines (315 loc) · 10.4 KB
/
pyproject.toml
File metadata and controls
348 lines (315 loc) · 10.4 KB
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
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
[build-system]
requires = ["setuptools>=70.1"]
build-backend = "setuptools.build_meta"
[project]
name = "ardupilot_methodic_configurator"
authors = [
{name = "Amilcar do Carmo Lucas", email = "amilcar.lucas@iav.de"},
]
maintainers = [
{name = "Amilcar do Carmo Lucas", email = "amilcar.lucas@iav.de"},
]
description = "A clear configuration sequence for ArduPilot vehicles"
readme = {file = "README.md", content-type = "text/markdown"}
requires-python = ">=3.9"
keywords = ["ArduPilot", "Configuration", "SCM", "Methodic", "ArduCopter", "ArduPlane", "ArduRover", "ArduSub"]
license = "GPL-3.0-or-later"
license-files = ["LICENSE.md", "LICENSES/*.txt", "credits/CREDITS.md"]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Intended Audience :: Education",
"Intended Audience :: End Users/Desktop",
"Intended Audience :: Manufacturing",
"Intended Audience :: Science/Research",
"Natural Language :: English",
"Natural Language :: Chinese (Simplified)",
"Natural Language :: German",
"Natural Language :: Portuguese",
"Natural Language :: Italian",
"Natural Language :: Japanese",
"Operating System :: OS Independent",
"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 :: 3.14",
"Topic :: Software Development :: Embedded Systems",
"Topic :: System :: Installation/Setup",
"Topic :: Scientific/Engineering",
"Typing :: Typed",
]
dependencies = [
"argcomplete==3.6.3",
"certifi==2026.2.25",
"defusedxml==0.7.1",
"jsonschema==4.25.1",
"matplotlib==3.9.4; python_version < '3.10'",
"matplotlib==3.10.3; python_version >= '3.10' and python_version < '3.14'",
"matplotlib==3.10.7; python_version >= '3.14'",
"numpy==2.0.2; python_version < '3.13'",
"numpy==2.3.4; python_version >= '3.13'",
"pillow==11.3.0",
"pip_system_certs==4.0",
"platformdirs==4.4.0",
"pymavlink==2.4.49",
"pyserial==3.5",
"requests==2.32.5",
"screeninfo==0.8.1",
]
dynamic = ["version"]
[project.optional-dependencies]
dev = [
"coverage==7.10.7",
"mock==5.2.0",
"mypy==1.18.2",
"pre-commit==4.3.0",
"pylint==3.3.9",
"pyautogui==0.9.54",
"pyright==1.1.408",
"pytest==8.4.2",
"pytest-cov==7.0.0",
"pytest-md==0.2.0",
"pytest-mock==3.15.1",
"python-gettext==5.0",
"ruff==0.15.4",
"types-requests==2.32.4.20260107",
]
ci_headless_tests = [
"pytest-xvfb==3.1.1",
]
scripts = [
"bs4==0.0.2",
"selenium==4.36.0",
"webdriver_manager==4.0.2",
]
pypi_dist = [
"build==1.4.0",
"packaging==26.0",
"setuptools==82.0.0",
]
win_dist = [
"pip==26.0.1",
"pywin32==311",
"pyinstaller==6.19.0",
"packaging==26.0",
]
mac_dist = [
"pip==26.0.1",
"pyinstaller==6.19.0",
"packaging==26.0",
]
[project.scripts]
ardupilot_methodic_configurator = "ardupilot_methodic_configurator.__main__:main"
extract_param_defaults = "ardupilot_methodic_configurator.extract_param_defaults:main"
annotate_params = "ardupilot_methodic_configurator.annotate_params:main"
param_pid_adjustment_update = "ardupilot_methodic_configurator.param_pid_adjustment_update:main"
mavftp = "ardupilot_methodic_configurator.backend_mavftp:main"
[project.entry-points."argcomplete.completers"]
ardupilot_methodic_configurator = "ardupilot_methodic_configurator.__main__:create_argument_parser"
extract_param_defaults = "ardupilot_methodic_configurator.extract_param_defaults:create_argument_parser"
annotate_params = "ardupilot_methodic_configurator.annotate_params:create_argument_parser"
param_pid_adjustment_update = "ardupilot_methodic_configurator.param_pid_adjustment_update:create_argument_parser"
mavftp = "ardupilot_methodic_configurator.backend_mavftp:create_argument_parser"
[project.urls]
homepage = "https://ardupilot.github.io/MethodicConfigurator/"
documentation = "https://github.com/ArduPilot/MethodicConfigurator/blob/master/USERMANUAL.md"
issues = "https://github.com/ArduPilot/MethodicConfigurator/issues"
source = "https://github.com/ArduPilot/MethodicConfigurator"
forum = "https://discuss.ardupilot.org/t/new-ardupilot-methodic-configurator-gui/115038/"
chat = "https://discord.com/invite/ArduPilot"
download = "https://github.com/ArduPilot/MethodicConfigurator/releases"
changelog = "https://github.com/ArduPilot/MethodicConfigurator/releases"
[tool.setuptools]
# Rely on discovery for just the top-level package and specify data via package-data
include-package-data = false
[tool.setuptools.packages.find]
include = ["ardupilot_methodic_configurator"]
[tool.setuptools.package-data]
ardupilot_methodic_configurator = ["**/*.param", "**/*.png", "**/*.jpg", "**/*.json", "**/*.xml", "**/*.mo"]
[tool.setuptools.dynamic]
version = {attr = "ardupilot_methodic_configurator.__version__"}
[tool.codespell]
check-filenames = true
ignore-words-list = "datas,intoto,juli,laf,ned,parm,sade,sitl,thst,sie,mot,carisma"
skip = "*.pdef.xml,*.pdf,*.po"
[tool.ruff]
exclude = [
".git",
"__pycache__",
"__target__",
"dist",
"scripts/test_gui_environment.py",
"svg_comparison_demo.py",
"scripts/show_svg_tk_variants.py",
"scripts/pycairo_render.py",
"scripts/cairosvg_test.py",
"scripts/cairo_svg_tkinter_demo.py",
"scripts/cairo_svg_renderer.py",
"post_install.py",
"param_zip.py",
"param_filter.py",
"mavproxy_param.py",
"mavproxy_ftp.py",
"mavftp.py",
"fix_with_statements.py",
"find_exclusive_parameter_names.py",
]
# https://docs.astral.sh/ruff/rules/
lint.select = [
#"ERA", # eradicate
"YTT", # flake8-2020
"ANN", # flake8-annotations
"ASYNC",# flake8-async
"S", # flake8-bandit
#"BLE", # flake8-blind-except
"FBT", # flake8-boolean-trap
"B", # flake8-bugbear
"A", # flake8-builtins
"COM", # flake8-commas
"C4", # flake8-comprehensions
#"CPY", # flake8-copyright
"DTZ", # flake8-datetimez
"T10", # flake8-debugger
"EM", # flake8-errmsg
"EXE", # flake8-executable
"FIX", # flake8-fixme
"FA", # flake8-future-annotations
"INT", # flake8-gettext
"ISC", # flake8-implicit-str-concat
"ICN", # flake8-import-conventions
"LOG", # flake8-logging
"G", # flake8-logging-format
"INP", # flake8-no-pep420
"PIE", # flake8-pie
"T20", # flake8-print
"PYI", # flake8-pyi
"PT", # flake8-pytest-style
"Q", # flake8-quotes
"RSE", # flake8-raise
"RET", # flake8-return
"SLF", # flake8-self
"SIM", # flake8-simplify
"SLOT", # flake8-slots
"TID", # flake8-tidy-imports
"TD", # flake8-todos
"TC", # flake8-type-checking
"ARG", # flake8-unused-arguments
#"PTH", # flake8-use-pathlib
"FLY", # flynt
"I", # isort
"C90", # maccabe
"NPY", # NumPy-specific rules
"PD", # pandas-vet
"N", # pep8-naming
"PERF", # Performance-related issues
"E", # pycodestyle -Error
"W", # pycodestyle - Warning
#"DOC", # pydoclint
"D", # pydocstyle
"F", # Pyflakes
"PGH", # pygrep-hooks
"PL", # Pylint
"PLC", # Convention
"PLE", # Error
"PLR", # Refactor
"PLW", # Warning
"UP", # pyupgrade
"FURB", # refurb
"RUF", # Ruff-specific codes
#"TRY", # tryceratops
]
lint.ignore = [
"ISC001", # to let formatter run
"ANN002",
"ANN003",
"D102", # Missing docstring in public method
"D103", # Missing docstring in public function
"D107", # Missing docstring in `__init__`
"D203", #
"D212", # Multi-line docstring summary should start at the first line
"D401", # First line of docstring should be in imperative mood
"COM812",
"DTZ005", # `tz=None` passed to `datetime.datetime.now()`
"FBT001", # Boolean-typed positional argument in function definition
"FBT002", # Boolean default positional argument in function definition
"LOG015", # `error()` call on root logger, Use own logger instead
"FA100", # Add `from __future__ import annotations` to simplify xxx
"TRY400", # Use logging.exception instead of logging.error
]
line-length = 127
indent-width = 4
[tool.ruff.lint.per-file-ignores]
"tests/*" = ["D101", "UP031", "ARG002", "ANN001", "S101", "SLF001"]
"ardupilot_methodic_configurator/backend_mavftp.py" = ["PGH004", "N801", "ANN001"]
"ardupilot_methodic_configurator/backend_mavftp_example.py" = ["ANN001"]
"ardupilot_methodic_configurator/tempcal_imu.py" = ["ANN001"]
[tool.ruff.lint.mccabe]
max-complexity = 22 # Default is 10
[tool.ruff.lint.pylint]
allow-magic-value-types = ["bytes", "float", "int", "str"]
max-args = 9 # Default is 5
max-branches = 24 # Default is 12
[tool.mypy]
ignore_missing_imports = true
disallow_any_unimported = false
disallow_any_expr = false
disallow_any_decorated = true
disallow_any_generics = false
disallow_any_explicit = false
disallow_subclassing_any = true
# Disallow untyped definitions and calls
disallow_untyped_calls = true
disallow_untyped_defs = false
disallow_incomplete_defs = false
check_untyped_defs = true
disallow_untyped_decorators = true
# None and optional handling
no_implicit_optional = true
# Configuring warnings
warn_unused_ignores = true
warn_no_return = true
warn_return_any = true
warn_redundant_casts = true
# Misc things
strict_equality = true
# Config file
warn_unused_configs = true
files = ["ardupilot_methodic_configurator/*.py"]
[tool.pyright]
include = [
"ardupilot_methodic_configurator/*.py",
"*.py",
]
exclude = [
".git",
".venv",
"__pycache__",
"__target__",
"dist",
"scripts/test_gui_environment.py",
"svg_comparison_demo.py",
"scripts/show_svg_tk_variants.py",
"scripts/pycairo_render.py",
"scripts/cairosvg_test.py",
"scripts/cairo_svg_tkinter_demo.py",
"scripts/cairo_svg_renderer.py",
"post_install.py",
"param_zip.py",
"param_filter.py",
"mavproxy_param.py",
"mavproxy_ftp.py",
"mavftp.py",
"fix_with_statements.py",
"find_exclusive_parameter_names.py",
"ardupilot_methodic_configurator/tempcal_imu.py",
"ardupilot_methodic_configurator/backend_mavftp.py",
"ardupilot_methodic_configurator/mavftp_example.py",
]
typeCheckingMode = "standard"
pythonVersion = "3.9"
pythonPlatform = "All"
deprecateTypingAliases = true
venvPath = "."
venv = ".venv"