Skip to content

Commit fde87a5

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 8bef421 commit fde87a5

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

google-cloud-speech/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/speech')
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)