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 f2533c9 commit 3a008e3
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions packages/google-cloud-speech/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/speech')


@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 3a008e3

Please sign in to comment.