You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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'
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:
Ruff pyproject settings:
Command invoked:
ruff format <path>
(Doesn't matter if it's only the file, or the whole repo)The text was updated successfully, but these errors were encountered: