-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Open
Labels
questionAsking for support or clarificationAsking for support or clarification
Description
Summary
I have this snipped that will be formatted by ruff format like this.
OPTIONS = {}
HG_ENV_PREFIX = 'HG_USERVAR_'
for key, value in six.iteritems(os.environ):
if key.startswith(HG_ENV_PREFIX):
OPTIONS[key[len(HG_ENV_PREFIX) :]] = value
flake8 will throw a warning for this: E203 whitespace before ':'
ruff check won't give a warning here.
ruff check --select E203 --preview
All checks passed!
Is flake8 or ruff correct here? I need to use # fmt: skip here. Maybe the formatter should avoid that whitespace?
Version
0.14.5
Metadata
Metadata
Assignees
Labels
questionAsking for support or clarificationAsking for support or clarification