Run linters.
    Returns a failure if the linters find linting errors or sufficiently
    serious code quality issues.

def lint(session):
    """Run linters.
    Returns a failure if the linters find linting errors or sufficiently
    serious code quality issues.
    """

    session.install('flake8', *LOCAL_DEPS)
    session.install('-e', '.')
    session.run(
        'flake8', os.path.join('google', 'cloud', 'bigquery_storage_v1beta1'))
    session.run('flake8', 'tests')