Hasty Briefsbeta

Uv format: Code Formatting Comes to uv (experimentally)

3 days ago
  • #Python
  • #Code Formatting
  • #Developer Tools
  • The latest uv release (0.8.13) introduced an experimental new command: uv format.
  • uv format provides Python code formatting by calling Ruff’s formatter under the hood.
  • Basic usage includes formatting all Python files, checking formatting, and viewing changes without applying them.
  • Additional Ruff arguments can be passed after -- for customization.
  • This is an experimental feature, so expect potential changes and improvements in future releases.