From 5d993803f4f19a726f2b734bc0a9892246a6f855 Mon Sep 17 00:00:00 2001 From: Danny Hermes Date: Thu, 20 Apr 2017 07:49:24 -0700 Subject: [PATCH] Adding check (in datastore) that setup.py README is valid RST. (#3316) --- datastore/nox.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/datastore/nox.py b/datastore/nox.py index 78a187aa51a0..7894b1ae0b23 100644 --- a/datastore/nox.py +++ b/datastore/nox.py @@ -101,6 +101,15 @@ def lint(session): session.run('flake8', 'google/cloud/datastore') +@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.