forked from pastoriomarco/manymove
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
66 lines (58 loc) · 1.82 KB
/
pyproject.toml
File metadata and controls
66 lines (58 loc) · 1.82 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
[build-system]
requires = ["setuptools>=42", "wheel"]
build-backend = "setuptools.build_meta"
# -------------------------------------------------------------------
# Python formatting and linting according to ROS 2 code-style guide
# -------------------------------------------------------------------
[tool.ruff]
# General settings
line-length = 100
# Linting rules
lint.select = ["E", "F", "Q"]
lint.ignore = [
"E203", # Whitespace before ':' (conflicts with Black-style slicing)
]
lint.fixable = ["ALL"]
# Quote and formatting style
format.quote-style = "single"
lint.flake8-quotes.inline-quotes = "single"
lint.flake8-quotes.docstring-quotes = "double"
# -------------------------------------------------------------------
# isort-compatible import sorting
# -------------------------------------------------------------------
[tool.isort]
profile = "black"
line_length = 100
force_single_line = true
multi_line_output = 3
include_trailing_comma = true
# Make ROS 2 packages appear before yaml
known_first_party = ["manymove"]
known_third_party = [
"ament_index_python",
"rclpy",
"launch",
"launch_ros",
"manymove_bringup",
"manymove_cpp_trees",
"manymove_planner",
"uf_ros_lib"
]
# Ensure sorting sections are explicit (so yaml ends up after ament_index_python)
sections = ["FUTURE", "STDLIB", "THIRDPARTY", "FIRSTPARTY", "LOCALFOLDER"]
default_section = "FIRSTPARTY"
# -------------------------------------------------------------------
# Ruff’s built-in isort mirror (keeps Ruff and isort in sync)
# -------------------------------------------------------------------
[tool.ruff.isort]
known-first-party = ["manymove"]
known-third-party = [
"ament_index_python",
"rclpy",
"launch",
"launch_ros",
"manymove_bringup",
"manymove_cpp_trees",
"manymove_planner",
"uf_ros_lib"
]