Skip to content

[flake8-logging] Add fix safety section to LOG001#18841

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

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

Conversation

@MeGaGiGaGon
Copy link
Contributor

Summary

Part of #15584

This adds a Fix safety section to direct-logger-instantiation (LOG001).

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

import logging
logger = logging.Logger(__name__)

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.

Thanks!

@dylwil3 dylwil3 enabled auto-merge (squash) June 23, 2025 13:16
@dylwil3 dylwil3 merged commit 34fd44e into astral-sh:main Jun 23, 2025
31 checks passed
@dylwil3 dylwil3 added the documentation Improvements or additions to documentation label Jun 23, 2025
@MeGaGiGaGon MeGaGiGaGon deleted the patch-3 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

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants