Skip to content

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

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

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

Conversation

@RazerM
Copy link
Contributor

@RazerM RazerM commented Jun 8, 2025

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
30 checks passed
@github-actions
Copy link
Contributor

github-actions bot commented Jun 9, 2025

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