Skip to content

Commit f81c3ad

Browse files
author
GPatiA2
committed
Added isort and ruff settings to vscode to have code style compliant formatters
1 parent 74d7252 commit f81c3ad

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

docs/_09_development/_develop_guide/_develop_guide/_setting_code.rst

+15
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,21 @@ Open your ``settings.json`` file from VSCode and add the following content to it
7474
"--max-line-length=99", "--import-order-style=google", "--show-source=true",
7575
"--statistics=true"],
7676
77+
"ruff.lineLength": 99,
78+
"ruff.organizeImports": false,
79+
"ruff.configuration" : {
80+
"format" : {
81+
"quote-style" : "single",
82+
"line-ending" : "auto",
83+
},
84+
},
85+
// isort to enforce propper import order
86+
"isort.args": ["--line-length", "99", "--force-alphabetical-sort-within-sections", "--profile", "black", "--force-sort-within-sections"],
87+
"pylint.args": ["--disable=B902,C816,D100,D101,D102,D103,D104,D105,D106,D107,D203,D212,D404,I202",
88+
"--max-line-length=99", "--import-order-style=google", "--show-source=true",
89+
"--statistics=true"
90+
]
91+
7792
Newer versions of ROS 2 include upgraded flake8 (in ament_flake8), so it is preferable to use
7893
flake8 from VSCode too instead of pylint. To do so, use, instead of the 'pylint.args' settings,
7994
the following settings:

0 commit comments

Comments
 (0)