---
title: "Ruff v0.7.0"
url: https://daily.dev/posts/ruff-v0-7-0-e8k5kgjdm
source_url: https://astral.sh/blog/ruff-v0.7.0
type: article
source: "Astral"
published: 2026-03-31T12:27:07.756Z
updated: 2026-03-31T12:32:05.615Z
tags: ["python", "rust"]
reading_time: 3
upvotes: 0
comments: 0
language: 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 · 0 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)
