def main():
    """Script entry point. Lints both sets of files."""
    make_test_rc(PRODUCTION_RC, TEST_RC_ADDITIONS,
                 TEST_RC_REPLACEMENTS, TEST_RC)
    library_files, non_library_files, using_restricted = get_python_files()
    try:
        lint_fileset(library_files, PRODUCTION_RC, 'library code')
        lint_fileset(non_library_files, TEST_RC, 'test code')
    except __HOLE__:
        if not using_restricted:
            raise

        message = 'Restricted lint failed, expanding to full fileset.'
        print(message, file=sys.stderr)
        all_files, _ = get_files_for_linting(allow_limited=False)
        library_files, non_library_files, _ = get_python_files(
            all_files=all_files)
        lint_fileset(library_files, PRODUCTION_RC, 'library code')
        lint_fileset(non_library_files, TEST_RC, 'test code')
dataset/ETHPy150Open GoogleCloudPlatform/gcloud-python/scripts/run_pylint.py/main