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

Support Jinja in non str Args #226

Merged
merged 28 commits into from
Jun 11, 2024
Merged

Support Jinja in non str Args #226

merged 28 commits into from
Jun 11, 2024

Conversation

gilesknap
Copy link
Member

@gilesknap gilesknap commented Jun 1, 2024

This PR updates the schema to make jinja rendering in arguments and values easier to use and cleans up some of the naming:

  • all args now can be type OR a jinja string that should render to that type
  • values and pre_values now can specify type and can be directly used as that type when referred to in Jinja.
  • values and pre_values support the list type (Args do not)
  • values and pre_values are renamed to post_defines and pre_defines respectively
  • sample tests demonstrate these features
    • listarg: nonsense test to show use of jinja in args and defines, use of lists in defines
    • fastVacuum: a practical example of a complex interaction between fast vacuum master and fast vacuum channels - the example duplicates what is done in builder.py for dlsPLC support module.
  • the global context object is renamed from utils to _global .

gilesknap and others added 13 commits June 3, 2024 13:11
Bumps [pydantic](https://github.com/pydantic/pydantic) from 2.6.4 to 2.7.3.
- [Release notes](https://github.com/pydantic/pydantic/releases)
- [Changelog](https://github.com/pydantic/pydantic/blob/main/HISTORY.md)
- [Commits](pydantic/pydantic@v2.6.4...v2.7.3)

---
updated-dependencies:
- dependency-name: pydantic
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Bumps [pydantic](https://github.com/pydantic/pydantic) from 2.6.4 to 2.7.3.
- [Release notes](https://github.com/pydantic/pydantic/releases)
- [Changelog](https://github.com/pydantic/pydantic/blob/main/HISTORY.md)
- [Commits](pydantic/pydantic@v2.6.4...v2.7.3)

---
updated-dependencies:
- dependency-name: pydantic
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
@gilesknap gilesknap merged commit a0a357e into main Jun 11, 2024
12 checks passed
@gilesknap gilesknap deleted the type-restore branch June 11, 2024 15:14
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