Get the latest tech news

Code formatting comes to uv experimentally


The latest uv release (0.8.13) quietly introduced an experimental new command that Python developers have been waiting for: uv format. This addition brings code formatting directly into uv’s toolkit, eliminating the need to juggle multiple tools for basic Python development workflows. What is uv format? The uv format command provides Python code formatting through uv’s interface. Under the hood, it calls Ruff’s formatter to automatically style your code according to consistent standards.

This addition brings code formatting directly into uv’s toolkit, eliminating the need to juggle multiple tools for basic Python development workflows. The command works just like running ruff format in your project root, but through uv’s interface. The command may change in future releases Integration with uv’s project model might evolve Error handling and output formatting could improve

Get the Android app

Or read this on Hacker News

Read more on:

Photo of Uv format

Uv format

Photo of Code Formatting

Code Formatting