GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Automatically check if modules are left out of the API docs · Issue #714 · googleapis/google-cloud-python

Automatically check if modules are left out of the API docs #714

New issue
Copy link
New issue
Copy link
Closed
Closed
Automatically check if modules are left out of the API docs#714
Copy link
Assignees
tseaver

Description

@dhermes
dhermes
opened on Mar 12, 2015
Issue body actions

See previous comment for context.

Activity

  1. dhermes
    added
    docs
    on Mar 12, 2015
  2. dhermes
    added this to the This milestone has been deleted milestone on Mar 12, 2015
  3. dhermes commented on Sep 28, 2015

    @dhermes
    dhermes
    on Sep 28, 2015
    ContributorAuthor
    More actions

    /cc @tseaver We may be able to handle this with http://sphinx-doc.org/ext/coverage.html

  4. tseaver commented on Sep 28, 2015

    @tseaver
    tseaver
    on Sep 28, 2015
    Contributor
    More actions

    I will try to enable sphinx.ext.coverage.

  5. tseaver
    self-assigned this
    on Sep 28, 2015
  6. tseaver commented on Sep 28, 2015

    @tseaver
    tseaver
    on Sep 28, 2015
    Contributor
    More actions

    Per Takayuki Shimizukawa's EP 2015 presentation, the extension generates a ReST report for undocumented modules/classes/functions, but there is no CI integration for it: the command always succeeds, and does not generate a useful machine-readable file we could interrogate.

  7. dhermes commented on Jan 6, 2016

    @dhermes
    dhermes
    on Jan 6, 2016
    ContributorAuthor
    More actions

    I have a hacky but short way to check this.

    import os
    import warnings
    
    from sphinx.ext.intersphinx import fetch_inventory
    
    class SphinxApp(object):
        warn = warnings.warn
        srcdir = os.path.abspath('.')
    
    I = fetch_inventory(SphinxApp, '',
                        os.path.join('docs', '_build', 'html', 'objects.inv'))
    sphinx_mods = I['py:module'].keys()
    
    py_files = []
    for path, _, files in os.walk('gcloud'):
        if any([part.startswith('_')
                for part in path.split(os.path.sep)]):
            continue
        for fi in files:
            if (fi.endswith('.py') and not fi.startswith('test_')
                    and not fi.startswith('_')):
                py_files.append(os.path.join(path, fi))
    mods = [fi[:-3].replace(os.path.sep, '.') for fi in py_files]
    print set(sphinx_mods) - set(mods)
    print set(mods) - set(sphinx_mods)

    Running this results in an empty set (everything in sphinx_mods is in mods) and the following:

    {'gcloud.bigquery.query',
     'gcloud.bigtable.client',
     'gcloud.bigtable.cluster',
     'gcloud.bigtable.column_family',
     'gcloud.bigtable.row',
     'gcloud.bigtable.table',
     'gcloud.datastore.demo.demo',
     'gcloud.datastore.helpers',
     'gcloud.demo',
     'gcloud.environment_vars',
     'gcloud.iterator',
     'gcloud.storage.batch',
     'gcloud.storage.demo.demo',
     'gcloud.streaming.buffered_stream',
     'gcloud.streaming.exceptions',
     'gcloud.streaming.http_wrapper',
     'gcloud.streaming.stream_slice',
     'gcloud.streaming.transfer',
     'gcloud.streaming.util'}

    We could do as we do in run_pylint.py and manually specify which files we are happy to ignore.


    @tseaver WDYT?

  8. dhermes
    added 3 commits that reference this issue on Jan 9, 2016

    Adding check that all public modules are documented.

    This issue will close once commit 3adfee2 is merged into the 'master' branch.
    3adfee2

    Adding check that all public modules are documented.

    This issue will close once commit 8caffb9 is merged into the 'master' branch.
    8caffb9

    Adding check that all public modules are documented.

    This issue will close once commit 3fb0651 is merged into the 'master' branch.
    3fb0651
  9. dhermes
    added a commit that references this issue on Jan 28, 2016

    Adding check that all public modules are documented.

    This issue will close once commit aafe3d1 is merged into the 'master' branch.
    aafe3d1
  10. dhermes
    added a commit that references this issue on Feb 12, 2016

    Adding check that all public modules are documented.

    This issue will close once commit 60bec76 is merged into the 'master' branch.
    60bec76
  11. dhermes
    closed this as completedin #1375on Feb 12, 2016
  12. parthea
    added a commit that references this issue on Oct 21, 2023

    fix: revert proto3_optional, required removal on parent_id (#714) (#265)

    9d0e7b6
  13. parthea
    added a commit that references this issue on Aug 21, 2025

    chore(main): release 2.24.0 (#714)

    eaa7e69
  14. parthea
    added 2 commits that reference this issue on Sep 16, 2025

    chore(main): release 2.24.0 (#714)

    a1bbd1b

    chore(deps): update all dependencies (#714)

    a11ddbf
  15. parthea
    added 7 commits that reference this issue on Nov 22, 2025

    chore(python): add support for python 3.11 [autoapprove] (#714)

    1ef2c1c

    fix: fix sphinx identifiers (#714)

    9f9e6b5

    chore: release 0.39.0 (#719)

    ee6e8eb

    chore(deps): update dependency google-cloud-logging to v3.5.0 (#714)

    89b5e9a

    chore: migrate to main branch (#714)

    d7f7f2b

    chore(deps): update dependency google-cloud-logging to v3.5.0 (#714)

    542ddbc

    fix: fix unit tests so they can work in g3 (#714)

    c5aa9b4
  16. parthea
    added 4 commits that reference this issue on Mar 6, 2026

    feat: add always_use_jwt_access (#714)

    60944dc

    Revert "feat: add always_use_jwt_access (#714)" (#722)

    9b8d0a7

    chore: release 2.21.0 (#760)

    4919152

    chore(deps): update dependency certifi to v2025.8.3 (#714)

    e76e152
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @tseaver
    tseaver

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.