Ruff file watchers in PyCharm + basic commands Format code file watcher: Name: ruff-format Program: $PyInterpreterDirectory$/ruff Arguments: format . Working directory: $ProjectFileDir$ Sort imports file watcher: Name: ruff-sort Program: $PyInterpreterDirectory$/ruff Arguments: ruff check . --fix --select I Working directory: $ProjectFileDir$ Basic terminal commands: # Format code ruff format . # Check code ruff check . # Fix code (all fixable issues, like unused imports etc.) ruff check . --fix # Sort (fix) imports only ruff check . --fix --select I