Skip to content

Activate RUF006 rule to detect dangling asyncio tasks#38947

Merged
potiuk merged 1 commit intoapache:mainfrom
hussein-awala:ruff_RUF006
Apr 12, 2024
Merged

Activate RUF006 rule to detect dangling asyncio tasks#38947
potiuk merged 1 commit intoapache:mainfrom
hussein-awala:ruff_RUF006

Conversation

@hussein-awala
Copy link
Member

This rule is useful to detect the asyncio tasks which are created without setting their reference to a variable because this could lead to unexpected results like removing them by GC.

@boring-cyborg boring-cyborg bot added area:dev-tools area:providers provider:google Google (including GCP) related issues labels Apr 11, 2024
Copy link
Contributor

@Taragolis Taragolis left a comment

Choose a reason for hiding this comment

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

Nice. Small NIT, maybe you could move this rule definition before RUF100 rule.

@potiuk potiuk merged commit b3b9079 into apache:main Apr 12, 2024
@utkarsharma2 utkarsharma2 added type:misc/internal Changelog: Misc changes that should appear in change log changelog:skip Changes that should be skipped from the changelog (CI, tests, etc..) and removed type:misc/internal Changelog: Misc changes that should appear in change log labels Jun 3, 2024
utkarsharma2 pushed a commit that referenced this pull request Jun 4, 2024
ephraimbuddy pushed a commit that referenced this pull request Jun 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:dev-tools area:providers changelog:skip Changes that should be skipped from the changelog (CI, tests, etc..) provider:google Google (including GCP) related issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants