-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
102 lines (87 loc) · 2.89 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
################################################################################
# Project
[project]
name = "ros_to_markdown"
version = "0.1.0"
description = "Convert ROS systems to Markdown for LLM processing"
authors = [{ name = "Rob Royce", email = "rob.royce@jpl.nasa.gov" }]
requires-python = ">=3.8,<3.13"
dependencies = [
"pyyaml",
"structlog[dev]",
"colorama>=0.4.0",
"pydantic",
"jinja2",
"clang==13.0.1",
"networkx",
"rich",
"click",
]
readme = "README.md"
license = { text = "Apache 2.0" }
################################################################################
################################################################################
# Development
[project.optional-dependencies]
dev = [
"black>=23.0",
"pytest>=7.0",
"pytest-cov>=4.0",
"ruff>=0.0.290",
"pytest-mock>=3.10.0",
]
################################################################################
################################################################################
# Build System
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build]
packages = ["src/ros_to_markdown"]
################################################################################
################################################################################
# Linting
[tool.ruff]
line-length = 100
target-version = "py38"
################################################################################
################################################################################
# Testing
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = ["test_*.py"]
addopts = "-ra -q --cov=ros_to_markdown"
markers = ["integration: marks tests that interact with a real ROS environment"]
asyncio_mode = "auto"
asyncio_default_fixture_loop_scope = "function"
################################################################################
################################################################################
# Type Checking
[tool.mypy]
python_version = "3.8"
warn_return_any = true
warn_unused_configs = true
disallow_untyped_defs = true
disallow_incomplete_defs = true
check_untyped_defs = true
disallow_untyped_decorators = false
no_implicit_optional = true
warn_redundant_casts = true
warn_unused_ignores = true
warn_no_return = true
warn_unreachable = true
exclude = [
'docker/',
'scripts/',
'tests/',
'.*/conftest.py', # Exclude all conftest.py files from type checking
]
[[tool.mypy.overrides]]
module = ["rclpy.*", "rospy.*", "rostopic.*", "pydantic.*", "structlog.*", "rosgraph.*"]
ignore_missing_imports = true
################################################################################
################################################################################
# Scripts
[project.scripts]
ros-to-markdown = "ros_to_markdown.cli:main"
################################################################################