From b50089ce5de22c6cacaeb1d6f9d7ea17d5d01b42 Mon Sep 17 00:00:00 2001 From: Danny Hermes Date: Thu, 20 Apr 2017 13:00:32 -0700 Subject: [PATCH] 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. --- packages/google-cloud-language/nox.py | 9 +++++++++ 1 file changed, 9 insertions(+) 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.