Skip to content

ruff/__main__.py: Remove unnecessary os.fsdecode - #18551

Merged
AlexWaygood merged 1 commit into
astral-sh:mainfrom
RazerM:feature/unnecessary-fsdecode
Jun 9, 2025
Merged

ruff/__main__.py: Remove unnecessary os.fsdecode#18551
AlexWaygood merged 1 commit into
astral-sh:mainfrom
RazerM:feature/unnecessary-fsdecode

Conversation

@RazerM

@RazerM RazerM commented Jun 8, 2025

Copy link
Copy Markdown
Contributor

Summary

This is really minor, but find_ruff_bin() returns str, so calling os.fsdecode is a no-op. This was missed when find_ruff_bin() was refactored to no longer return Path.

Test Plan

N/A

find_ruff_bin() returns str, so this is a no-op
@AlexWaygood AlexWaygood added the internal An internal refactor or improvement label Jun 9, 2025
@AlexWaygood
AlexWaygood enabled auto-merge (squash) June 9, 2025 10:32
@AlexWaygood
AlexWaygood disabled auto-merge June 9, 2025 10:32
@AlexWaygood AlexWaygood changed the title Remove unnecessary os.fsdecode ruff/__main__.py: Remove unnecessary os.fsdecode Jun 9, 2025
@AlexWaygood
AlexWaygood enabled auto-merge (squash) June 9, 2025 10:32
@AlexWaygood
AlexWaygood merged commit b01c95d into astral-sh:main Jun 9, 2025
@github-actions

github-actions Bot commented Jun 9, 2025

Copy link
Copy Markdown
Contributor

ruff-ecosystem results

Linter (stable)

✅ ecosystem check detected no linter changes.

Linter (preview)

✅ ecosystem check detected no linter changes.

Formatter (stable)

✅ ecosystem check detected no format changes.

Formatter (preview)

✅ ecosystem check detected no format changes.

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

Labels

internal An internal refactor or improvement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants