diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 4cc0b5f7f..6e9bc25b6 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -19,38 +19,36 @@ again. All submissions, including submissions by project members, require review. We use GitHub pull requests for this purpose. Consult -[GitHub Help](https://help.github.com/articles/about-pull-requests/) for more +[GitHub Docs](https://docs.github.com/en/pull-requests/reference/pull-requests) for more information on using pull requests. ## Community Guidelines This project follows [Google's Open Source Community -Guidelines](https://opensource.google.com/conduct/). +Guidelines](https://opensource.google/conduct/). ## Code Style This library conforms to [PEP 8](https://www.python.org/dev/peps/pep-0008/) -style guidelines and enforces an 80 character line width. It's recommended -that any contributor run the auto-formatter [`black`](https://github.com/psf/black), -version 19.10b0 on the non-generated codebase whenever making changes. To get -started, first install the appropriate version of `black`: +style guidelines and enforces an 80 character line width. Run the auto-formatter [`black`](https://github.com/psf/black) on the +non-generated codebase whenever making changes. First, install `black`: -``` -python -m pip install black==19.10b0 +```bash +python -m pip install black ``` You can manually run the formatter on all non-generated code with the following command: -``` +```bash python -m black -l 80 --exclude "/(v[0-9]+|\.eggs|\.git|_cache|\.nox|\.tox|\.venv|\.svn|_build|buck-out|build|dist)/" . ``` -Alternatively, if you intend to contribute regularly, it might be easier to -append this script to the `.git/hooks/pre-commit` file: +Alternatively, if you intend to contribute regularly, you can append the +following script to `.git/hooks/pre-commit`: -``` -FILES=$(git diff --cached --name-only --diff-filter=ACMR "*.py" | grep -v "google/ads/google_ads/v.*") +```bash +FILES=$(git diff --cached --name-only --diff-filter=ACMR "*.py" | grep -v "google/ads/googleads/v.*") echo "${FILES}" | xargs python -m black -l 80 echo "${FILES}" | xargs git add ``` diff --git a/README.rst b/README.rst index 7253baa45..20ff7e945 100644 --- a/README.rst +++ b/README.rst @@ -13,7 +13,7 @@ Requirements Installation ------------ -.. code-block:: +.. code-block:: bash pip install google-ads @@ -25,7 +25,7 @@ Features Documentation ------------- -Please refer to our `Developer Site`_ for documentation on how to install, +See the `Developer Site`_ for documentation on how to install, configure, and use this client library. Miscellaneous @@ -38,11 +38,7 @@ Miscellaneous Authors ------- -* `Mark Saniscalchi`_ -* `David Wihl`_ * `Ben Karl`_ -* `Andrew Burke`_ -* `Laura Chevalier`_ * `Bob Hancock`_ .. |build-status| image:: https://storage.googleapis.com/gaa-clientlibs/badges/google-ads-python/buildstatus_ubuntu.svg @@ -50,9 +46,5 @@ Authors .. _Issue tracker: https://github.com/googleads/google-ads-python/issues .. _API documentation: https://developers.google.com/google-ads/api/ .. _API Support: https://developers.google.com/google-ads/api/support -.. _Mark Saniscalchi: https://github.com/msaniscalchi -.. _David Wihl: https://github.com/wihl .. _Ben Karl: https://github.com/BenRKarl -.. _Andrew Burke: https://github.com/AndrewMBurke -.. _Laura Chevalier: https://github.com/laurachevalier4 .. _Bob Hancock: https://github.com/bobhancock diff --git a/google-ads.yaml b/google-ads.yaml index c00cc55ec..b1c21a1c9 100644 --- a/google-ads.yaml +++ b/google-ads.yaml @@ -24,8 +24,8 @@ refresh_token: INSERT_REFRESH_TOKEN_HERE # configuration parameters and remove the three OAuth2 credentials above. The # # "json_key_file_path" value should be a path to your local private key json file, and # # "impersonated_email" should be the email address that is being used to impersonate the # -# credentials making requests. for more information on service accounts, see: # -# https://developers.google.com/google-ads/api/docs/oauth/service-accounts. # +# credentials making requests. For more information on service accounts, see: # +# https://developers.google.com/google-ads/api/docs/oauth/service-accounts # # If you're authorizing with direct account access, then the "impersonated_email" # # configuration is optional. # ########################################################################################## @@ -77,6 +77,6 @@ login_customer_id: INSERT_LOGIN_CUSTOMER_ID_HERE ########################################################################################## # Below you can specify whether to initialize the library using Application Default # # Credentials (ADC). To understand how ADC discovers credentials in a given environment, # -# see: https://developers.google.com/identity/protocols/application-default-credentials # +# see: https://cloud.google.com/docs/authentication/application-default-credentials # # ######################################################################################## # use_application_default_credentials: True