-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathpyproject.toml
More file actions
112 lines (99 loc) · 2.68 KB
/
pyproject.toml
File metadata and controls
112 lines (99 loc) · 2.68 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
[project]
name = "hydra4"
dynamic = ["version"]
description = "Decode Hesai Pandar Packets to NumPy arrays or PointCloud2 messages"
authors = [{ name = "urasakikeisuke", email = "keisuke.urasaki@map4.jp" }]
dependencies = [
"numpy>=1.22.0",
"pypcd4>=1.0.0",
]
readme = "README.md"
requires-python = ">=3.10"
license = { file = "LICENSE.txt" }
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"License :: OSI Approved :: Apache Software License",
"Operating System :: POSIX",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: Implementation :: CPython",
"Topic :: Scientific/Engineering",
"Topic :: Software Development :: Libraries",
"Topic :: System :: Hardware :: Hardware Drivers",
"Topic :: Utilities",
"Framework :: Robot Framework :: Tool",
]
urls.Source = "https://github.com/MapIV/hydra4"
urls.Tracker = "https://github.com/MapIV/hydra4/issues"
urls."Release Notes" = "https://github.com/MapIV/hydra4/releases"
[dependency-groups]
dev = [
"rosbags>=0.10.0",
"pytest>=8.2.0",
"ruff>=0.4.3",
"pytest-cov>=5.0.0",
"ty>=0.0.29",
"setuptools-scm>=8.0.4",
"tox>=4.15.0",
]
[build-system]
requires = ["hatchling", "hatch-vcs"]
build-backend = "hatchling.build"
[tool.hatch.metadata]
allow-direct-references = true
[tool.hatch]
version.source = "vcs"
build.hooks.vcs.version-file = "src/hydra4/_version.py"
[tool.hatch.version.raw-options]
local_scheme = "no-local-version"
[tool.hatch.build.targets.sdist]
ignore-vcs = true
exclude = [
"*.pcd",
"tests/",
]
[tool.setuptools_scm]
write_to = "src/hydra4/_version.py"
version_scheme = "guess-next-dev"
local_scheme = "node-and-date"
[tool.ruff]
line-length = 100
indent-width = 4
[tool.ruff.lint]
select = ["E", "F", "I", "PLR", "B"]
ignore = ["PLR2004"]
fixable = ["ALL"]
unfixable = []
[tool.ruff.lint.per-file-ignores]
# Packet decoders have inherent statement/branch complexity
"src/hydra4/decoders/pandar_ot128.py" = ["PLR0912", "PLR0915"]
"src/hydra4/decoders/pandar_xt32.py" = ["PLR0912"]
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
docstring-code-format = true
docstring-code-line-length = 60
[tool.tox]
legacy_tox_ini = """
[tox]
min_version = 4.0
isolated_build = true
env_list =
py310
py311
py312
py313
[testenv]
deps =
pytest
pytest-cov
ruff
rosbags
commands =
ruff check src tests
pytest tests -vv
"""