-
Notifications
You must be signed in to change notification settings - Fork 14
/
pyproject.toml
208 lines (187 loc) · 6.27 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
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
[build-system]
requires = ["setuptools>=61.0", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "MethodicConfigurator"
authors = [
{name = "Amilcar do Carmo Lucas", email = "[email protected]"},
]
maintainers = [
{name = "Amilcar do Carmo Lucas", email = "[email protected]"},
]
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 = {text = "GPLv3"}
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Scientific/Engineering",
]
dependencies = [
"defusedxml",
"matplotlib",
"numpy",
"platformdirs",
"pymavlink",
"pyserial",
"pillow",
"setuptools",
"requests",
]
dynamic = ["version"]
[project.optional-dependencies]
dev = [
"ruff",
"pre-commit",
"pytest",
"pytest-cov",
"coverage",
"mock",
]
[project.scripts]
ardupilot_methodic_configurator = "MethodicConfigurator.ardupilot_methodic_configurator:main"
extract_param_defaults = "MethodicConfigurator.extract_param_defaults:main"
annotate_params = "MethodicConfigurator.annotate_params:main"
param_pid_adjustment_update = "MethodicConfigurator.param_pid_adjustment_update:main"
[project.urls]
homepage = "https://github.com/ArduPilot/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]
packages = ["MethodicConfigurator"]
package-data = {MethodicConfigurator = ["*.param", "*.jpg", "*.json", "*.xml", "*.mo", "*.png"]}
exclude-package-data = {MethodicConfigurator = ["test.xml"]}
include-package-data = false
[tool.setuptools.dynamic]
version = {attr = "MethodicConfigurator.__version__"}
[tool.ruff]
exclude = [
".git",
"__pycache__",
"__target__",
"dist",
]
# https://docs.astral.sh/ruff/rules/
lint.select = [
"F", # Pyflakes
"E", # pycodestyle -Error
"W", # pycodestyle - Warning
#"C901", # maccabe
"I", # isort
"N", # pep8-naming
"D", # pydocstyle
"UP", # pyupgrade
"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
"DTZ", # flake8-datetimez
"T10", # flake8-debugger
"EM", # flake8-errmsg
"EXE", # flake8-executable
"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 (T20)
"PYI", # flake8-pyi (PYI)
#"PT", # flake8-pytest-style (PT)
"Q", # flake8-quotes (Q)
"RSE", # flake8-raise (RSE)
"RET", # flake8-return (RET)
"SLF", # flake8-self (SLF)
"SLOT", # flake8-slots (SLOT)
"SIM", # flake8-simplify
"TID", # flake8-tidy-imports
"TC", # flake8-type-checking
"INT", # flake8-gettext
"ARG", # flake8-unused-arguments
#"PTH", # flake8-use-pathlib
#"TD", # flake8-todos
#"FIX", # flake8-fixme
#"ERA", # eradicate
"PD", # pandas-vet
"PGH", # pygrep-hooks
"PL", # Pylint
"FLY002", # flynt
"PERF", # Performance-related issues
"FURB", # refurb
"DOC", # pydoclint
"RUF", # Ruff-specific codes
]
lint.ignore = [
"PLR0912", # too many branches
"PLR0913", # too many arguments
"PLR2004", # Magic value used in comparison, consider replacing `X` with a constant variable
"N999", # Invalid module name: 'MethodicConfigurator'
"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", #
"D205", # 1 blank line required between summary line and description
"D212", # Multi-line docstring summary should start at the first line
"D404", # First word of the docstring should not be "This"
"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
]
line-length = 127
indent-width = 4
[tool.ruff.lint.per-file-ignores]
"unittests/*" = ["D101","UP031", "ARG002", "ANN001"]
"MethodicConfigurator/backend_mavftp.py" = ["PGH004", "N801", "ANN001"]
"MethodicConfigurator/backend_mavftp_example.py" = ["ANN001"]
"MethodicConfigurator/tempcal_imu.py" = ["ANN001"]
[tool.mypy]
ignore_missing_imports = true
disallow_any_unimported = false
disallow_any_expr = false
disallow_any_decorated = false
disallow_any_generics = false
disallow_any_explicit = false
disallow_subclassing_any = false
# Disallow untyped definitions and calls
disallow_untyped_calls = false
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 = ["MethodicConfigurator/*.py"]
exclude = ["unittests"]