-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpyproject.toml
More file actions
169 lines (142 loc) · 4.02 KB
/
pyproject.toml
File metadata and controls
169 lines (142 loc) · 4.02 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
[project]
name = "drone_estimators"
version = "0.1.0b1"
description = "State estimators for drones."
readme = "README.md"
authors = [{ name = "Marcel Rath" }, { name = "Martin Schuck" }]
license = { file = "LICENSE" }
classifiers = [
"License :: OSI Approved :: MIT License",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Intended Audience :: Developers",
"Intended Audience :: Education",
"Intended Audience :: Science/Research",
]
dependencies = [
"jax",
"numpy>=2.0",
"scipy>=1.17.0rc1",
"drone-models>=0.1.0b0",
"munch",
"transforms3d",
"flax",
"array-api-compat",
"array-api-extra",
# "array-api-typing", To be added back in when properly released on pypi
]
[tool.setuptools.packages]
find = {}
[tool.setuptools.package-data]
drone_estimators = ["ros_nodes/*.toml"]
[tool.pytest.ini_options]
markers = ["unit", "integration", "render"]
addopts = "-m 'not render'"
[tool.ruff]
# Exclude a variety of commonly ignored directories.
exclude = [
".git",
".git-rewrite",
".ipynb_checkpoints",
".pyenv",
".pytest_cache",
".pytype",
".ruff_cache",
".venv",
".vscode",
"__pypackages__",
"_build",
"build",
"dist",
"site-packages",
"venv",
"docs/conf.py",
"plot.py",
]
line-length = 100
indent-width = 4
target-version = "py311"
[tool.ruff.lint]
select = ["E4", "E7", "E9", "F", "I", "D", "TCH", "ANN"]
ignore = ["ANN401", "ANN101"]
fixable = ["ALL"]
unfixable = []
[tool.ruff.lint.per-file-ignores]
"benchmark/*" = ["D100", "D103"]
"tests/*" = ["D100", "D103", "D104"]
"examples/*" = ["D100", "D103"]
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.ruff.lint.flake8-annotations]
suppress-dummy-args = true
suppress-none-returning = true
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = true
line-ending = "auto"
docstring-code-format = true
docstring-code-line-length = "dynamic"
[tool.pixi]
[tool.pixi.workspace]
channels = ["https://prefix.dev/conda-forge"]
platforms = ["linux-64"]
[tool.pixi.dependencies]
python = "*"
pip = "*"
uv = "*"
ruff = "*"
[tool.pixi.pypi-dependencies]
drone-estimators = { path = "./", editable = true }
[tool.pixi.target.linux.dependencies]
libgl-devel = "*"
[tool.pixi.environments]
default = { features = ["kilted"], solve-group = "default" }
tests = { features = ["kilted", "tests"], solve-group = "default" }
docs = { features = ["kilted", "docs"], solve-group = "default" }
dist = { features = ["kilted", "dist"], solve-group = "default" }
# tests
[tool.pixi.feature.tests.pypi-dependencies]
pytest = ">=8.4.1"
pytest-timeout = ">=2.1.0"
[tool.pixi.feature.tests.tasks]
tests = { cmd = "pytest -v tests", description = "Run tests" }
# docs
[tool.pixi.feature.docs.dependencies]
mkdocs = ">=1.5.0"
mkdocs-material = ">=9.0.0"
python = ">=3.10"
[tool.pixi.feature.docs.pypi-dependencies]
mkdocs-autorefs = ">=1.2.0"
mkdocstrings = { extras = ["python"], version = ">=0.26.0" }
mkdocs-gen-files = ">=0.5.0"
mkdocs-literate-nav = ">=0.6.0"
mkdocs-section-index = ">=0.3.0"
[tool.pixi.feature.docs.tasks]
docs-serve = { cmd = "mkdocs serve", description = "Serve docs locally" }
docs-build = { cmd = "mkdocs build", description = "Build docs" }
# distribution
[tool.pixi.feature.dist.pypi-dependencies]
build = "*"
twine = "*"
[tool.pixi.feature.dist.tasks]
build = { cmd = "python -m build && twine check dist/*", description = "Build and test the package" }
upload_test = { cmd = "twine upload -r testpypi dist/*", description = "Test upload of the built package" }
upload = { cmd = "twine upload dist/*", description = "Upload of the built package" }
# ROS Kilted
[tool.pixi.feature.kilted]
channels = ["https://prefix.dev/robostack-kilted"]
[tool.pixi.feature.kilted.dependencies]
# Build tools
compilers = "*"
cmake = "*"
pkg-config = "*"
make = "*"
ninja = "*"
# ROS specific tools
rosdep = "*"
colcon-common-extensions = "*"
# Kilted specific tools
ros-kilted-desktop = "*"
[tool.pixi.feature.kilted.activation]
scripts = ["setup_mocap.sh"]