Skip to content

[flake8-logging] Add fix safety section to LOG002#18840

Merged
dylwil3 merged 2 commits intoastral-sh:mainfrom
MeGaGiGaGon:patch-2
Jun 23, 2025
Merged

[flake8-logging] Add fix safety section to LOG002#18840
dylwil3 merged 2 commits intoastral-sh:mainfrom
MeGaGiGaGon:patch-2

Conversation

@MeGaGiGaGon
Copy link
Contributor

Summary

Part of #15584

This adds a Fix safety section to invalid-get-logger-argument (LOG002).

The fix/lint was introduced in #7399
No reasoning is given on the unsafety in the PR/code
Unsafe fix demonstration:
playground

import logging
logger = logging.getLogger(__file__)

Test Plan

N/A, no tests/functionality affected

@MeGaGiGaGon MeGaGiGaGon mentioned this pull request Jun 20, 2025
71 tasks
@github-actions
Copy link
Contributor

github-actions bot commented Jun 20, 2025

ruff-ecosystem results

Linter (stable)

✅ ecosystem check detected no linter changes.

Linter (preview)

✅ ecosystem check detected no linter changes.

@MichaReiser MichaReiser requested a review from dylwil3 June 21, 2025 15:38
Copy link
Collaborator

@dylwil3 dylwil3 left a comment

Choose a reason for hiding this comment

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

Thank you!

@dylwil3 dylwil3 enabled auto-merge (squash) June 23, 2025 13:20
@dylwil3 dylwil3 merged commit 315fb0f into astral-sh:main Jun 23, 2025
33 checks passed
@MeGaGiGaGon MeGaGiGaGon deleted the patch-2 branch June 23, 2025 16:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants