<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/ruff-v0-7-0-e8k5kgjdm" -->

---
title: Ruff v0.7.0 | daily.dev
description: Ruff v0.7.0 is released with a few breaking changes. Key updates include a fix ensuring all users now see the corrected default behavior for...
canonical: https://daily.dev/posts/ruff-v0-7-0-e8k5kgjdm
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Ruff v0.7.0 | daily.dev
og:description: Ruff v0.7.0 is released with a few breaking changes. Key updates include a fix ensuring all users now see the corrected default behavior for...
og:url: https://daily.dev/posts/ruff-v0-7-0-e8k5kgjdm
og:image: https://api.daily.dev/og/posts/E8k5KgJDm.png
og:image:alt: Ruff v0.7.0
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Ruff v0.7.0

**[Astral](https://daily.dev/sources/astral-sh)** · 3 min read · 1 upvotes · 0 comments

## Summary

Ruff v0.7.0 is released with a few breaking changes. Key updates include a fix ensuring all users now see the corrected default behavior for flake8-pytest-style rules PT001 and PT023 (parentheses are now removed by default, aligning with official pytest style). Other changes include recoding the useless-try-except rule from TRY302 to TRY203, removal of the lint.allow-unused-imports setting in favor of lint.pyflakes.allow-unused-imports, and expanded detection for the SIM115 open-file-with-context-handler rule now promoted from preview to stable.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://astral.sh/blog/ruff-v0.7.0>

---

Tags: [#python](https://daily.dev/tags/python), [#rust](https://daily.dev/tags/rust)

[View this post on daily.dev](https://daily.dev/posts/ruff-v0-7-0-e8k5kgjdm)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Ruff v0.7.0","url":"https://daily.dev/posts/ruff-v0-7-0-e8k5kgjdm","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/ruff-v0-7-0-e8k5kgjdm"},"datePublished":"2026-03-31T12:27:07.756Z","dateModified":"2026-03-31T12:32:05.615Z","description":"Ruff v0.7.0 is released with a few breaking changes. Key updates include a fix ensuring all users now see the corrected default behavior for...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/6d00c88551509de45defd95fd75b91dd?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/6d00c88551509de45defd95fd75b91dd?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Astral","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Astral","logo":"https://media.daily.dev/image/upload/s--NI5d91BK--/f_auto,q_auto/v1774959974/logos/astral-sh?_a=BAMAMiWQ0","url":"https://daily.dev/sources/astral-sh"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/ruff-v0-7-0-e8k5kgjdm","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":1},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"python,rust","timeRequired":"PT3M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Astral","item":"https://daily.dev/sources/astral-sh"},{"@type":"ListItem","position":3,"name":"Ruff v0.7.0"}]}
```

