# Ruff v0.1.8

DevFeed: [Ruff v0.1.8](<https://devfeed.tech/articles/ruff-v0-1-8-82897.md>)

Original publisher: [Read original article](<https://astral.sh/blog/ruff-v0.1.8>)

Author: andrew@astral.sh (Andrew Gallant)

Published: 2023-12-13T00:00:00Z

Content type: release

Language: en

Sources: [Astral](<https://devfeed.tech/sources/astral.md>)

Topics: [formatting](<https://devfeed.tech/topics/formatting.md>), [Test automation](<https://devfeed.tech/topics/test-automation.md>)

Tags: [annotations](<https://devfeed.tech/tags/annotations.md>), [code](<https://devfeed.tech/tags/code.md>), [formatting](<https://devfeed.tech/tags/formatting.md>), [ruff](<https://devfeed.tech/tags/ruff.md>)

## AI overview

Ruff v0.1.8 adds opt-in formatting for Python code examples in docstrings, including doctest, Markdown, and reStructuredText formats. It also adds automatic quoting of type annotations to support moving imports into type-checking blocks.

## Source excerpt

Ruff adds support for formatting code snippets in docstrings and auto-quoting type annotations.