Skip to content

Commit 8a712f6

Browse files
authored
Adding check that **all** setup.py README's are valid RST. (#3318)
* 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.
1 parent f8234bf commit 8a712f6

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

packages/google-cloud-monitoring/README.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ insights via dashboards, charts, and alerts.
4242
This package currently supports all Monitoring API operations other than
4343
writing custom metrics.
4444

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

4847
List available metric types:

packages/google-cloud-monitoring/nox.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,15 @@ def lint(session):
7777
session.run('flake8', 'google/cloud/monitoring')
7878

7979

80+
@nox.session
81+
def lint_setup_py(session):
82+
"""Verify that setup.py is valid (including RST check)."""
83+
session.interpreter = 'python3.6'
84+
session.install('docutils', 'Pygments')
85+
session.run(
86+
'python', 'setup.py', 'check', '--restructuredtext', '--strict')
87+
88+
8089
@nox.session
8190
def cover(session):
8291
"""Run the final coverage report.

0 commit comments

Comments
 (0)