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

Dev-Params ---> Staging #10

Merged
merged 5 commits into from
Apr 28, 2024
Merged

Dev-Params ---> Staging #10

merged 5 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 marked this pull request as draft April 28, 2024 20:45
@RLogik RLogik marked this pull request as ready for review April 28, 2024 20:45
@RLogik RLogik merged commit 83f3e2f into staging Apr 28, 2024
1 check passed
@RLogik RLogik deleted the dev-params branch April 28, 2024 20:47
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.

None yet

1 participant