Skip to content

Commit d26822b

Browse files
dhermeslukesneeringer
authored andcommitted
Adding check (in datastore) that setup.py README is valid RST. (#3316)
1 parent 16a9f84 commit d26822b

File tree

1 file changed

+9
-0
lines changed
  • packages/google-cloud-datastore

1 file changed

+9
-0
lines changed

packages/google-cloud-datastore/nox.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,15 @@ def lint(session):
101101
session.run('flake8', 'google/cloud/datastore')
102102

103103

104+
@nox.session
105+
def lint_setup_py(session):
106+
"""Verify that setup.py is valid (including RST check)."""
107+
session.interpreter = 'python3.6'
108+
session.install('docutils', 'Pygments')
109+
session.run(
110+
'python', 'setup.py', 'check', '--restructuredtext', '--strict')
111+
112+
104113
@nox.session
105114
def cover(session):
106115
"""Run the final coverage report.

0 commit comments

Comments
 (0)