diff --git a/google-cloud-speech/nox.py b/google-cloud-speech/nox.py index ed7a7e85997c..272a60231491 100644 --- a/google-cloud-speech/nox.py +++ b/google-cloud-speech/nox.py @@ -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.