Skip to content

Commit

Permalink
Normalize config debug dump to use hyphens
Browse files Browse the repository at this point in the history
  • Loading branch information
akaihola committed Jun 30, 2023
1 parent 31abf1f commit b94ad90
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/darker/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,9 @@ def get_modified_config(parser: ArgumentParser, args: Namespace) -> DarkerConfig

def dump_config(config: DarkerConfig) -> str:
"""Return the configuration in TOML format"""
dump = toml.dumps(config, encoder=TomlArrayLinesEncoder())
dump = toml.dumps(
convert_underscores_to_hyphens(config), encoder=TomlArrayLinesEncoder()
)
return f"[tool.darker]\n{dump}"


Expand Down

0 comments on commit b94ad90

Please sign in to comment.