From 0bd4eefeca93157915548cbd81851cf47c6623f5 Mon Sep 17 00:00:00 2001 From: ejochman <34144949+ejochman@users.noreply.github.com> Date: Tue, 28 Apr 2020 13:59:47 -0700 Subject: [PATCH] Auto-format all files using yapf and pre-commit (#1173) Automatic fixes produced by yapf formatting using `--style=google`, as well as common pre-commit checks such as trailing whitespace removal, double quote fixer, and newlines at the end of a file. --- .github/ISSUE_TEMPLATE.txt | 2 +- .github/stale.yml | 2 +- .pre-commit-config.yaml | 2 + src/GamCommands.txt | 10 +- src/LICENSE | 26 +- src/cloudprint-v2.json | 6 +- src/gam.py | 4 +- src/gam/__init__.py | 24208 +++++++++++++++------------ src/gam/__main__.py | 11 +- src/gam/auth/oauth.py | 598 +- src/gam/auth/oauth_test.py | 1252 +- src/gam/controlflow.py | 52 +- src/gam/controlflow_test.py | 168 +- src/gam/display.py | 405 +- src/gam/display_test.py | 84 +- src/gam/fileutils.py | 152 +- src/gam/fileutils_test.py | 384 +- src/gam/gapi/__init__.py | 323 +- src/gam/gapi/__init___test.py | 817 +- src/gam/gapi/calendar.py | 427 +- src/gam/gapi/directory/cros.py | 263 +- src/gam/gapi/directory/customer.py | 38 +- src/gam/gapi/directory/resource.py | 244 +- src/gam/gapi/errors.py | 475 +- src/gam/gapi/errors_test.py | 321 +- src/gam/gapi/reports.py | 183 +- src/gam/gapi/storage.py | 21 +- src/gam/gapi/vault.py | 378 +- src/gam/transport.py | 91 +- src/gam/transport_test.py | 272 +- src/gam/utils.py | 438 +- src/gam/var.py | 2014 ++- src/tools/a_atleast_b.py | 4 +- src/travis/osx-before-install.sh | 4 +- src/travis/svars-write.py | 2 +- 35 files changed, 18967 insertions(+), 14714 deletions(-) diff --git a/.github/ISSUE_TEMPLATE.txt b/.github/ISSUE_TEMPLATE.txt index 8be79b48..857b1fd1 100644 --- a/.github/ISSUE_TEMPLATE.txt +++ b/.github/ISSUE_TEMPLATE.txt @@ -5,7 +5,7 @@ Please confirm the following: * I am typing the command as described in the GAM Wiki at https://github.com/jay0lee/gam/wiki Full steps to reproduce the issue: -1. +1. 2. 3. diff --git a/.github/stale.yml b/.github/stale.yml index adcb26a3..ad9cba42 100644 --- a/.github/stale.yml +++ b/.github/stale.yml @@ -33,7 +33,7 @@ staleLabel: wontfix markComment: > This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. - + # Comment to post when removing the stale label. # unmarkComment: > # Your comment here. diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index da45a317..66a29c55 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -9,10 +9,12 @@ repos: hooks: - id: trailing-whitespace - id: end-of-file-fixer + - id: double-quote-string-fixer - id: check-yaml - id: check-docstring-first - id: name-tests-test - id: requirements-txt-fixer + - id: check-merge-conflict - repo: https://github.com/pre-commit/mirrors-yapf rev: v0.29.0 diff --git a/src/GamCommands.txt b/src/GamCommands.txt index cb85311d..f42892ec 100644 --- a/src/GamCommands.txt +++ b/src/GamCommands.txt @@ -224,7 +224,7 @@ If an item contains spaces, it should be surrounded by ".
::= ::= ::= - ::= + ::= ::= ::= || ::= @@ -773,7 +773,7 @@ Specify a collection of Users by directly specifying them or by specifiying item (name )| (type )| (uservisibledescription ) - + ::= field (type bool|date|double|email|int64|phone|string) [multivalued|multivalue] [indexed] [restricted] [range ] endfield @@ -1253,10 +1253,10 @@ gam download export [noverify] [noextract] [targetfold gam create vaulthold|hold corpus drive|groups|mail matter [name ] [query ] [(accounts|groups|users ) | (orgunit|ou )] - [start|starttime |