Reformat Code
with ⌥⇧ ⌘ L
or Ctrl+Alt+L
⌥⏎
or Alt+Enter
)# noqa:
# noqa: <code>
ruff --fix
as an actionruff --fix
for a file when the file is savedruff
ruff
commandruff
executable pathruff
command as a new processruff
config file path as an optionruff
executable in Conda environmentruff
executable in WSLruff-lsp
integrationruff server
integrationpyproject.toml
and ruff.toml
without restartingruff format
for ruff version 0.0.289
or later [Experimental]ruff-lsp
for only PyCharm Pro/IDEA UltimateYou can enable it in Preferences/Settings
-> Tools
-> Ruff
-> Use ruff-lsp (Experimental) for PyCharm Pro/IDEA Ultimate
The lsp integration applies only below features:
This is experimental feature.