diff --git a/packages/google-cloud-language/nox.py b/packages/google-cloud-language/nox.py index 5f1ce1cd597d..2b4f372786ed 100644 --- a/packages/google-cloud-language/nox.py +++ b/packages/google-cloud-language/nox.py @@ -77,6 +77,15 @@ def lint(session): session.run('flake8', 'google/cloud/language') +@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.