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

Validate-or-build function #29

Open
benrutter opened this issue Feb 7, 2025 · 0 comments
Open

Validate-or-build function #29

benrutter opened this issue Feb 7, 2025 · 0 comments
Labels
enhancement New feature or request

Comments

@benrutter
Copy link
Owner

For some file based workflows, something like this would be nice:

import polars as pl
import wimsey

def some_function() -> pl.DataFrame:
    return (
        get_some_polars_table()
        .with_columns(a=pl.col("b") - pl.col("c"))
        .pipe(wimsey.validate_or_create_tests, location="some/test/location.yaml")
    )

i.e. if a test doesn't exist, will use sampling to generate some "starter tests" and save them. But if they do exist, will then test according to them.

@benrutter benrutter added the enhancement New feature or request label Feb 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant