-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use the ruff vscode extension to format on save
- Loading branch information
Showing
3 changed files
with
30 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,28 @@ | ||
{ | ||
"recommendations": [ | ||
"cschlosser.doxdocgen", // Generates doxygen comments | ||
"DavidAnson.vscode-markdownlint", // Lints markdown files | ||
"DotJoshJohnson.xml", // XML support | ||
"eamodio.gitlens", // Extended git highlighting | ||
"lextudio.restructuredtext", // Rendering rst files in preview | ||
"mohsen1.prettify-json", // JSON formatting | ||
"ms-azuretools.vscode-docker", // Docker support | ||
"MS-CEINTL.vscode-language-pack-de", // German language pack | ||
"ms-iot.vscode-ros", // ROS support | ||
"ms-python.python", // Python support | ||
"ms-python.vscode-pylance", // Python support | ||
"ms-vscode.cmake-tools", // CMake support | ||
"ms-vscode.cpptools-extension-pack", // C++ support | ||
"ms-vscode.cpptools-themes", // C++ support | ||
"ms-vscode.cpptools", // C++ support | ||
"njpwerner.autodocstring", // Generates docstrings | ||
"streetsidesoftware.code-spell-checker-german", // Spell checker | ||
"streetsidesoftware.code-spell-checker", // Spell checker | ||
"tamasfe.even-better-toml", // TOML support | ||
"trond-snekvik.simple-rst", // Syntax highlighting for rst files | ||
"twxs.cmake", // CMake support | ||
"zxh404.vscode-proto3", // Protobuf support | ||
"charliermarsh.ruff", // Ruff linting and formatting support | ||
"cschlosser.doxdocgen", // Generates doxygen comments | ||
"DavidAnson.vscode-markdownlint", // Lints markdown files | ||
"DotJoshJohnson.xml", // XML support | ||
"eamodio.gitlens", // Extended git highlighting | ||
"lextudio.restructuredtext", // Rendering rst files in preview | ||
"Mastermori.dsd", // DSD support | ||
"mohsen1.prettify-json", // JSON formatting | ||
"ms-azuretools.vscode-docker", // Docker support | ||
"MS-CEINTL.vscode-language-pack-de", // German language pack | ||
"ms-iot.vscode-ros", // ROS support | ||
"ms-python.python", // Python support | ||
"ms-python.vscode-pylance", // Python support | ||
"ms-vscode.cmake-tools", // CMake support | ||
"ms-vscode.cpptools-extension-pack", // C++ support | ||
"ms-vscode.cpptools-themes", // C++ support | ||
"ms-vscode.cpptools", // C++ support | ||
"njpwerner.autodocstring", // Generates docstrings | ||
"streetsidesoftware.code-spell-checker-german", // Spell checker | ||
"streetsidesoftware.code-spell-checker", // Spell checker | ||
"tamasfe.even-better-toml", // TOML support | ||
"trond-snekvik.simple-rst", // Syntax highlighting for rst files | ||
"twxs.cmake", // CMake support | ||
"zxh404.vscode-proto3", // Protobuf support | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,15 @@ | ||
[tool.black] | ||
line-length = 120 | ||
|
||
[tool.ruff] | ||
line-length = 120 | ||
# Never enforce `E501` (line length violations), as black takes care of this. | ||
|
||
[tool.ruff.lint] | ||
# Never enforce `E501` (line length violations) | ||
ignore = ["E501", "UP007"] | ||
# Additionally enable the following rules | ||
# - pycodestyle warnings (`W`) | ||
# - flake8-bugbear warnings (`B`) | ||
# - isort import sorting (`I`) | ||
# - isort import sorting (`I001`) | ||
# - pep8-naming convenrtions (`N`) | ||
# - pyupgrade prefer newer language constructs (`UP`) | ||
select = ["F", "E", "B", "W", "I", "N", "UP"] | ||
select = ["F", "E", "B", "W", "I001", "N", "UP"] | ||
# Do not lint the following directories | ||
exclude = ["lib"] |