Skip to content

Commit

Permalink
Adding check that **all** setup.py README's are valid RST. (#3318)
Browse files Browse the repository at this point in the history
* Adding check that **all** setup.py README's are valid RST.

Follow up to #3316. Fixes #2446.

* Fixing duplicate reference in Logging README.

* Fixing duplicate reference in Monitoring README.
  • Loading branch information
dhermes authored Apr 20, 2017
1 parent f8234bf commit 8a712f6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
1 change: 0 additions & 1 deletion packages/google-cloud-monitoring/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ insights via dashboards, charts, and alerts.
This package currently supports all Monitoring API operations other than
writing custom metrics.

.. _Stackdriver Monitoring: https://cloud.google.com/monitoring/
.. _Monitoring API docs: https://cloud.google.com/monitoring/api/ref_v3/rest/

List available metric types:
Expand Down
9 changes: 9 additions & 0 deletions packages/google-cloud-monitoring/nox.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,15 @@ def lint(session):
session.run('flake8', 'google/cloud/monitoring')


@nox.session
def lint_setup_py(session):
"""Verify that setup.py is valid (including RST check)."""
session.interpreter = 'python3.6'
session.install('docutils', 'Pygments')
session.run(
'python', 'setup.py', 'check', '--restructuredtext', '--strict')


@nox.session
def cover(session):
"""Run the final coverage report.
Expand Down

0 comments on commit 8a712f6

Please sign in to comment.