-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
151 lines (138 loc) · 3.56 KB
/
pyproject.toml
File metadata and controls
151 lines (138 loc) · 3.56 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
[project]
name = "feldfreund_devkit"
dynamic = ["version"]
description = "A sturdy development platform for autonomous outdoor robotics made by Zauberzeug"
authors = [{ name="Zauberzeug GmbH", email="feldfreund@zauberzeug.com" }]
readme = "README.md"
requires-python = ">=3.11, <3.14"
dependencies = [
"nicegui (>= 3.2.0, <4.0.0)",
"rosys @ git+https://github.com/zauberzeug/rosys.git@721eadf4ea74d4ed8bb95d4899456615df4fc06f",
"httpx >=0.25.0",
"coloredlogs",
"httpcore",
"psutil",
]
[dependency-groups]
dev = [
{include-group = "types"},
"mypy (>=1.18.2, <2.0.0)",
"pylint (>=3.3.3, <4.0.0)",
"pre-commit (>=4.3.0, <5.0.0)",
"ruff (>=0.13.2, <1.0.0)",
"autopep8 (>=2.3.2, <3.0.0)",
"poetry-dynamic-versioning (>=1.8.0, <2.0.0)",
"livesync (>=0.3.4, <1.0.0)",
"odrive (==0.6.9.post0)",
]
test = [
"pytest (>=8.3.4, <9.0.0)",
"pytest-asyncio (>=1.2.0, <2.0.0)",
]
types = [
"types-psutil>=7.1.3.20251211",
]
docs = [
"black",
"click (<8.3.0)",
"mdx-footnotes2",
"mdx-include",
"mkdocs (>=1.6.1)",
"mkdocs-gen-files",
"mkdocs-literate-nav",
"mkdocs-macros-plugin",
"mkdocs-material",
"mkdocs-pymdownx-material-extras",
"mkdocs-section-index",
"mkdocstrings-python",
"toml",
]
[build-system]
requires = [
"poetry-core>=1.0.0",
"poetry-dynamic-versioning>=1.0.0,<2.0.0",
]
build-backend = "poetry_dynamic_versioning.backend"
[tool.poetry]
version = "0.0.0"
[tool.poetry-dynamic-versioning]
enable = true
vcs = "git"
style = "pep440"
[tool.uv]
default-groups = ["dev", "test"]
[tool.uv.sources]
rosys = { path = "../rosys", editable = true }
[tool.mypy]
python_version = "3.12"
install_types = false
check_untyped_defs = true
[[tool.mypy.overrides]]
module = [
"coloredlogs",
"odrive.*",
]
ignore_missing_imports = true
[tool.pylint]
disable = [
"C0103", # Invalid name (e.g., variable/function/class naming conventions)
"C0111", # Missing docstring (in function/class/method)
"C0114", # Missing module docstring
"C0115", # Missing class docstring
"C0116", # Missing function or method docstring
"C0301", # Line too long (exceeds character limit)
"R0902", # Too many public methods
"R0903", # Too few public methods
"R0904", # Too many public methods
"R0911", # Too many return statements
"R0912", # Too many branches
"R0913", # Too many arguments
"R0914", # Too many local variables
"R0913", # Too many arguments
"R0914", # Too many local variables
"R0915", # Too many statements
"R0917", # Too many positional arguments
"W0511", # TODO: comments
"W0718", # Catching too general exception
]
[tool.autopep8]
max-line-length = 120
ignore = [
"E402",
]
[tool.ruff]
line-length = 120
indent-width = 4
target-version = "py312"
[tool.ruff.lint]
select = [
"B", # bugbear
"E", # pycodestyle
"F", # pyflakes
"I", # isort
"PL", # pylint
"RUF", # ruff
"UP", # pyupgrade
"W", # pycodestyle
]
fixable = [
"I", # isort
"RUF022", # `__all__` is not sorted
]
ignore = [
"E501", # line too long
"B024", # abstract base class without abstract methods
"PLR0911", # too many return statements
"PLR0912", # too many branches
"PLR0913", # too many arguments
"PLR0915", # too many statements
"PLR2004", # magic value comparison
]
[tool.pytest.ini_options]
pythonpath = ["."]
asyncio_mode = "auto"
# NOTE: changing default location of pytest_cache because the uvicorn file watcher somehow triggered too many reloads
cache_dir = "../.pytest_cache"
testpaths = [
"tests"
]