Skip to content

[PyCon.de sprints] simplify string formatting with f-strings - #2520

Draft
snordhausen wants to merge 4 commits into
conda-forge:mainfrom
snordhausen:simplify-string-formatting
Draft

[PyCon.de sprints] simplify string formatting with f-strings#2520
snordhausen wants to merge 4 commits into
conda-forge:mainfrom
snordhausen:simplify-string-formatting

Conversation

@snordhausen

@snordhausen snordhausen commented Apr 13, 2026

Copy link
Copy Markdown

Checklist

  • Added a news entry
  • Regenerated schema JSON if schema altered (python -m conda_smithy.schema)

Comment thread conda_smithy/feedstock_tokens.py Outdated
# spill tokens
failed = False
err_msg = None
provider = "provider" if provider is None else "provider " + provider

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will override provider, let's find a different way.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
provider = "provider" if provider is None else "provider " + provider
provider_str = "provider" if provider is None else "provider " + provider

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants