-
Notifications
You must be signed in to change notification settings - Fork 14
/
pyproject.toml
83 lines (75 loc) · 1.45 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
[tool.pylint.messages_control]
disable = "C0330, C0326"
[tool.mypy]
exclude = "doc/"
[[tool.mypy.overrides]]
# list all modules for which no type hints are available
module = [
"ament_index_python.*",
"cv2",
"matplotlib.*",
"pandas",
"pinocchio",
"plotext",
"progressbar",
"pytest",
"rclpy.*",
"scipy.*",
"setuptools",
"std_msgs.*",
"std_srvs.*",
# our packages
"robot_interfaces",
"robot_properties_fingers",
"trifinger_cameras.*",
"trifinger_simulation.*",
"trifinger_object_tracking.*",
# pybind11 packages
"robot_fingers.pybullet_drivers",
"robot_fingers.py_real_finger",
"robot_fingers.py_trifinger",
"robot_fingers.py_one_joint",
"robot_fingers.py_two_joint",
"robot_fingers.py_solo_eight",
]
ignore_missing_imports = true
[tool.ruff]
# enable all and disable a few via ignore below
select = ["ALL"]
extend-ignore = [
"BLE",
"COM",
"EM",
"FBT",
"INP",
"PTH",
"S",
"T20",
"UP",
"A003",
"ANN101",
"ANN102",
"ANN401",
"D105",
"D107",
"D205",
"D212",
"D417",
"G004",
"I001",
"N806",
"PLR0913",
"PTH123",
"RET505",
"SIM108",
"TRY003",
"TRY400",
]
target-version = "py310"
[tool.ruff.pydocstyle]
convention = "google"
[tool.ruff.per-file-ignores]
"*.pyi" = ["ALL"]
"__init__.py" = ["F401"] # unused imports
"test/*" = ["D", "ANN", "PLR2004"]
"scripts/*" = ["D"]