Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: proper display for extra Pypi indexes config #1622

Merged
merged 13 commits into from
Jan 28, 2023
Prev Previous commit
Apply suggestions from code review
  • Loading branch information
frostming authored Jan 28, 2023
commit 21cf79dfd512e5d81d7e2f99b82989c41064e1d1
4 changes: 1 addition & 3 deletions src/pdm/cli/commands/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,7 @@ def _show_config(
verbosity=termui.Verbosity.DETAIL,
)
self.ui.echo(RegistryConfig(**config[key], config_prefix=key))
continue
if key.startswith(REPOSITORY):
elif key.startswith(REPOSITORY):
for item in config[key]:
self.ui.echo(
f"[warning]# Configuration of custom repository `{item}`",
Expand All @@ -101,7 +100,6 @@ def _show_config(
**config[key][item], config_prefix=f"{key}.{item}"
)
)
continue
continue
config_item = Config._config_map[canonical_key]
self.ui.echo(
Expand Down