Skip to content

Commit e6282c9

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 ca22969 commit e6282c9

File tree

1 file changed

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

1 file changed

+9
-0
lines changed

packages/google-cloud-bigtable/nox.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,15 @@ def lint(session):
7676
session.run('flake8', 'google/cloud/bigtable')
7777

7878

79+
@nox.session
80+
def lint_setup_py(session):
81+
"""Verify that setup.py is valid (including RST check)."""
82+
session.interpreter = 'python3.6'
83+
session.install('docutils', 'Pygments')
84+
session.run(
85+
'python', 'setup.py', 'check', '--restructuredtext', '--strict')
86+
87+
7988
@nox.session
8089
def cover(session):
8190
"""Run the final coverage report.

0 commit comments

Comments
 (0)