forked from ArduPilot/MethodicConfigurator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
171 lines (150 loc) · 4.93 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
[build-system]
requires = ["setuptools>=61.0", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "MethodicConfigurator"
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 = {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",
"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",
]
lint.select = [
"F", # pycodestyle
"E", # Pyflakes
"W", # Warnings
"U", # pyupgrade
"I", # isort
"N", # pep8-naming
"PL", # Pylint
"B", # flake8-bugbear
"RUF", # Ruff-specific codes
"PERF", # Performance-related issues
"SIM", # flake8-simplify
"LOG", # flake8-logging
"G", # flake8-logging-format
#"C901", # maccabe
"S", # flake8-bandit
"TID", # flake8-tidy-imports
"TCH", # flake8-type-checking
"INT", # flake8-gettext
"FLY002", # flynt
#"FURB", # refurb
"ISC", # flake8-implicit-str-concat
"ICN", # flake8-import-conventions
"ANN", # flake8-annotations
]
lint.ignore = [
"PLR0912", # too many branches
"PLR0913", # too many arguments
"PLR2004", # Magic value used in comparison, consider replacing `X` with a constant variable
"N801", # Class name `FTP_OP` should use CapWords convention
"N802", # Function name `X` should be lowercase
"N806", # Variable name `X` should be lowercase
"N812", # Lowercase `x` imported as non-lowercase `X`
"N814", # Camelcase `X` imported as constant `Y`
"N817", # CamelCase `X` imported as acronym `Y`
"N999", # Invalid module name: 'MethodicConfigurator'
"ISC001", # to let formatter run
"ANN001", # Missing type annotation for function argument
"ANN002",
"ANN003",
"ANN101", # Missing type annotation for self in method
"ANN201",
]
line-length = 127
indent-width = 4
target-version = "py39"
[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"]