-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Closed
Closed
Copy link
Labels
formatterRelated to the formatterRelated to the formatterquestionAsking for support or clarificationAsking for support or clarification
Description
Hi,
I've been trying to upgrade ruff and use the formatter, so we can remove black. I have noticed this diff when using the formatter:
This enum is used to validate codes from an external API, I would rather not try and handle lowercasing that data before accessing this enum. I cannot seem to find a rule to turn off this behaviour, does this not exist or am I missing something? Nothing interesting popped out to me when running ruff format --verbose <path>
Ruff version: 0.7.0
Code snippet:
from enum import Enum
class TestEnum(Enum):
ANGRY = '\u1F621'
SAD = '\u1F622'
Ruff pyproject settings:
[tool.ruff.lint]
select = ["E", "F", "I", "Q", "N"]
ignore = []
[tool.ruff.lint.flake8-quotes]
inline-quotes = "single"
[tool.ruff.format]
quote-style = "single"
Command invoked:
ruff format <path> (Doesn't matter if it's only the file, or the whole repo)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
formatterRelated to the formatterRelated to the formatterquestionAsking for support or clarificationAsking for support or clarification