-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
112 lines (99 loc) · 2.09 KB
/
pyproject.toml
File metadata and controls
112 lines (99 loc) · 2.09 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
[build-system]
requires = ["setuptools>=68", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "nav-stack-tooling"
version = "0.1.0"
description = "Tooling config for a ROS 2 Python workspace"
requires-python = ">=3.10"
[project.optional-dependencies]
tooling = [
"ruff>=0.6.0",
"mypy>=1.8",
]
[tool.setuptools]
packages = []
[tool.ruff]
target-version = "py310"
line-length = 120
exclude = [
".git",
"build",
"install",
"log",
"vectornav", # git submodule
"**/__pycache__",
"**/*.egg-info",
"**/.pytest_cache",
"**/.mypy_cache",
"**/resource",
]
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"F", # pyflakes
"I", # import sorting
"B", # bugbear
"UP", # pyupgrade
"SIM", # simplify
"RUF", # ruff rules
"A", # builtins shadowing
"C4", # comprehension optimizations
"PIE", # misc correctness
"ISC" # string concat issues
]
ignore = [
"E501", # formatter handles line wrapping
]
[tool.ruff.lint.per-file-ignores]
"**/test/**.py" = [
"B011", # asserts, tests use them
]
[tool.mypy]
python_version = "3.10"
pretty = true
show_error_codes = true
warn_unused_ignores = true
warn_redundant_casts = true
warn_unreachable = true
check_untyped_defs = true
exclude = [
"build/",
"install/",
"log/",
"(^|/)setup\\.py$",
]
namespace_packages = true
explicit_package_bases = true
ignore_missing_imports = false
disable_error_code = ["import-untyped"]
[[tool.mypy.overrides]]
module = [
"rclpy.*",
"builtin_interfaces.*",
"std_msgs.*",
"geometry_msgs.*",
"geographic_msgs.*",
"nav_msgs.*",
"sensor_msgs.*",
"std_srvs.*",
"foxglove_msgs.*",
"visualization_msgs.*",
"launch",
"launch.*",
"launch_ros",
"launch_ros.*",
"ament_copyright.*",
"ament_flake8.*",
"ament_pep257.*",
"tf2_ros.*",
"tf_transformations.*",
"tf2_geometry_msgs",
"robot_localization.*",
"pyproj"
]
ignore_missing_imports = true
disable_error_code = ["attr-defined"]