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

create tool function for validating types #1029

Open
sbillinge opened this issue Jun 3, 2023 · 0 comments
Open

create tool function for validating types #1029

sbillinge opened this issue Jun 3, 2023 · 0 comments
Milestone

Comments

@sbillinge
Copy link
Contributor

could look something like this hacky code:

            bad_milestone_types = [ms for ms in milestones if ms.get('status')
                                   not in PROJECTUM_STATI]
            bad_milestone_types_output = [f"{ms.get('name')}, {ms.get('uuid')}, "
                                          f"{ms.get('status')}" for ms in
                                          bad_milestone_types]
            if bad_milestone_types:
                print(f"WARNING: some milestones in {projectum.get('_id')} have "
                      f"bad status types: ["
                      f"{bad_milestone_types_output}]")

but in tolls and with tests and can be called to validate whatever in whatever

@sbillinge sbillinge modified the milestones: v0.10.0rc, v0.11.0rc Dec 31, 2024
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

No branches or pull requests

1 participant