Skip to content

Add flake8-trio support#8439

Merged
charliermarsh merged 5 commits intoastral-sh:mainfrom
karpetrosyan:add-flake8-trio
Nov 3, 2023
Merged

Add flake8-trio support#8439
charliermarsh merged 5 commits intoastral-sh:mainfrom
karpetrosyan:add-flake8-trio

Conversation

@karpetrosyan
Copy link
Copy Markdown
Contributor

@karpetrosyan karpetrosyan commented Nov 2, 2023

Summary

This pull request adds flake8-trio support to ruff, which is a very useful plugin for trio users to avoid very common mistakes.

Part of #8451.

Test Plan

Traditional rule testing, as described in the documentation.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Nov 2, 2023

ruff-ecosystem results

Linter (stable)

✅ ecosystem check detected no linter changes.

Linter (preview)

✅ ecosystem check detected no linter changes.

@charliermarsh charliermarsh self-requested a review November 2, 2023 13:58
@charliermarsh charliermarsh added the rule Implementing or modifying a lint rule label Nov 2, 2023
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Nov 2, 2023

ruff-ecosystem results

Linter (stable)

✅ ecosystem check detected no linter changes.

Linter (preview)

✅ ecosystem check detected no linter changes.

Copy link
Copy Markdown
Member

@charliermarsh charliermarsh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great! Just some small comments.

Comment thread crates/ruff_linter/src/rules/flake8_trio/rules/timeout_without_await.rs Outdated
Comment thread crates/ruff_linter/src/rules/flake8_trio/rules/timeout_without_await.rs Outdated
@charliermarsh charliermarsh self-assigned this Nov 2, 2023
@charliermarsh charliermarsh enabled auto-merge (squash) November 3, 2023 00:57
@charliermarsh
Copy link
Copy Markdown
Member

Thanks! I also created #8451 to track flake8-trio.

@charliermarsh charliermarsh merged commit 2ff1afb into astral-sh:main Nov 3, 2023
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Nov 3, 2023

ruff-ecosystem results

Linter (stable)

✅ ecosystem check detected no linter changes.

Linter (preview)

✅ ecosystem check detected no linter changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

rule Implementing or modifying a lint rule

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants