@runs_once
def lint():
    """Run pylint on the project, including the packages in `apps/`, `lib/` and
    `vendor/`, and using the `.pylintrc` file in the project's root.

    Requires the env keys:
        root_dir - root of the project, where the fabfile resides
    """
    require('root_dir')
    env.python_path_extensions = '%(root_dir)s/lib:%(root_dir)s/apps' % env
    for directory in os.listdir(os.path.join(env.root_dir, 'vendor')):
        full_path = os.path.join(env.root_dir, 'vendor', directory)
        if os.path.isdir(full_path):
            env.python_path_extensions += ':' + full_path
    with cd(env.root_dir):
        local('PYTHONPATH=$PYTHONPATH:%(python_path_extensions)s '
            'pylint %(root_dir)s --rcfile=.pylintrc 2>/dev/null' % env)
dataset/ETHPy150Open bueda/ops/buedafab/testing.py/lint/original