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

Staging ---> Main #11

Merged
merged 7 commits into from
Apr 28, 2024
Merged

Staging ---> Main #11

merged 7 commits into from
Apr 28, 2024

Conversation

RLogik
Copy link
Owner

@RLogik RLogik commented Apr 28, 2024

Now allow users to use hyphenated keys in user config (.phpytex.yaml). When parse, these are cleaned so that they can be used in code. E.g.

# .phpytex.yaml
...
parameters:
  file: src.params
  overwrite: ...
  options:
    ...
    author-name: "Maximilian Ulysses"
    author-surname: "Mustermann"
    page_language-list:
      - en-GB
      - de-DE
      - fr-FR
    ...
...

transpiles to

# src/params.py
...
author_name = "Maximilian Ulysses"
author_surname = "Mustermann"
page_language_list = [ "en-GB", "de-DE", "fr-FR" ]
...

@RLogik RLogik merged commit ccf65a3 into main Apr 28, 2024
1 check passed
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.

1 participant