Skip to content

Commit 20eec54

Browse files
authored
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.
1 parent 79652e8 commit 20eec54

File tree

1 file changed

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

1 file changed

+9
-0
lines changed

packages/google-cloud-core/nox.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,15 @@ def lint(session):
5353
session.run('flake8', 'google/cloud/core')
5454

5555

56+
@nox.session
57+
def lint_setup_py(session):
58+
"""Verify that setup.py is valid (including RST check)."""
59+
session.interpreter = 'python3.6'
60+
session.install('docutils', 'Pygments')
61+
session.run(
62+
'python', 'setup.py', 'check', '--restructuredtext', '--strict')
63+
64+
5665
@nox.session
5766
def cover(session):
5867
"""Run the final coverage report.

0 commit comments

Comments
 (0)