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

Python API for linter #35

Open
yannikschaelte opened this issue Feb 16, 2021 · 2 comments
Open

Python API for linter #35

yannikschaelte opened this issue Feb 16, 2021 · 2 comments
Labels
enhancement New feature or request

Comments

@yannikschaelte
Copy link
Member

A 1-line python API to the linter would be nice, basically calling petablint::main with arguments.

@dweindl
Copy link
Member

dweindl commented Feb 16, 2021

So you don't want to provide your own PetabProblem? Otherwise petab.lint.lint_problem would do the job.

@yannikschaelte
Copy link
Member Author

yannikschaelte commented Feb 16, 2021

Yes, don't want to create the problem manually, i.e. instead of
petab.lint.lint_problem(petab.PetabProblem.from_yaml('yaml_file.yaml'))
petab.lint.lint_yaml('yaml_file.yaml')
or sth like that. If I see correctly, the CLI additionally also validates the YAML first.
Super low prio though ;)

@dweindl dweindl transferred this issue from PEtab-dev/PEtab Mar 18, 2021
@plakrisenko plakrisenko added the enhancement New feature or request label May 4, 2021
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

3 participants