view env/lib/python3.9/site-packages/planemo/commands/cmd_conda_lint.py @ 0:4f3585e2f14b draft default tip

"planemo upload commit 60cee0fc7c0cda8592644e1aad72851dec82c959"
author shellac
date Mon, 22 Mar 2021 18:12:50 +0000
parents
children
line wrap: on
line source

"""Module describing the planemo ``conda_lint`` command."""
import click

from planemo import conda_lint
from planemo import options
from planemo.cli import command_function


@click.command('conda_lint')
@options.report_level_option()
@options.fail_level_option()
@options.recursive_option(
    "Recursively perform command for nested conda directories.",
)
@options.recipe_arg(multiple=True)
@command_function
def cli(ctx, paths, **kwds):
    """Check conda recipe for common issues.

    Built in large part on the work from the BSD licensed anaconda-verify
    project. For more information on anacoda-verify see:
    https://github.com/ContinuumIO/anaconda-verify.
    """
    exit_code = conda_lint.lint_recipes_on_paths(ctx, paths, **kwds)
    ctx.exit(exit_code)