Skip to content

Commit

Permalink
Update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Erotemic committed Jul 9, 2022
1 parent 1847de6 commit 01d2401
Show file tree
Hide file tree
Showing 11 changed files with 30 additions and 19 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ jobs:
- macOS-latest
python-version:
- '2.7'
#- '3.4'
- '3.4'
- '3.5'
- '3.6'
- '3.7'
Expand Down
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm

## Version 1.0.1 - Unreleased

### Added
* Add type stubs

### Fixed
* Corner case bug in error reporting
* Doctests that never run any code are now correctly marked as skipped
Expand Down
2 changes: 1 addition & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ def visit_Assign(self, node):
#
# This is also used if you do content translation via gettext catalogs.
# Usually you set "language" from the command line for these cases.
language = None
language = 'en'

# List of patterns, relative to source directory, that match files and
# directories to ignore when looking for source files.
Expand Down
7 changes: 0 additions & 7 deletions docs/source/xdoctest.docstr.convert_google_to_numpy.rst

This file was deleted.

1 change: 0 additions & 1 deletion docs/source/xdoctest.docstr.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ Submodules
.. toctree::
:maxdepth: 4

xdoctest.docstr.convert_google_to_numpy
xdoctest.docstr.docscrape_google
xdoctest.docstr.docscrape_numpy

Expand Down
7 changes: 7 additions & 0 deletions docs/source/xdoctest.global_state.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
xdoctest.global\_state module
=============================

.. automodule:: xdoctest.global_state
:members:
:undoc-members:
:show-inheritance:
1 change: 1 addition & 0 deletions docs/source/xdoctest.rst
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ Submodules
xdoctest.doctest_part
xdoctest.dynamic_analysis
xdoctest.exceptions
xdoctest.global_state
xdoctest.parser
xdoctest.plugin
xdoctest.runner
Expand Down
1 change: 1 addition & 0 deletions docs/source/xdoctest.utils.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ Submodules
.. toctree::
:maxdepth: 4

xdoctest.utils.util_deprecation
xdoctest.utils.util_import
xdoctest.utils.util_misc
xdoctest.utils.util_mixins
Expand Down
7 changes: 7 additions & 0 deletions docs/source/xdoctest.utils.util_deprecation.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
xdoctest.utils.util\_deprecation module
=======================================

.. automodule:: xdoctest.utils.util_deprecation
:members:
:undoc-members:
:show-inheritance:
4 changes: 2 additions & 2 deletions xdoctest/docstr/docscrape_google.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
* https://pypi.org/project/numpydoc/
References:
[GoogleStyleDocs1] https://sphinxcontrib-napoleon.readthedocs.io/en/latest/example_google.html#example-google
[GoogleStyleDocs2] http://www.sphinx-doc.org/en/stable/ext/example_google.html#example-google
.. [GoogleStyleDocs1] https://sphinxcontrib-napoleon.readthedocs.io/en/latest/example_google.html#example-google
.. [GoogleStyleDocs2] http://www.sphinx-doc.org/en/stable/ext/example_google.html#example-google
"""
from __future__ import absolute_import, division, print_function, unicode_literals
import re
Expand Down
14 changes: 7 additions & 7 deletions xdoctest/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,15 +110,15 @@ def doctest_module(module_identifier=None, command=None, argv=None, exclude=[],
The name of / path to the module, or the live module itself.
If not specified, dynamic analysis will be used to introspect the
module that called this function and that module will be used.
This can also contain the callname followed by the `::` token.
This can also contain the callname followed by the ``::`` token.
command (str):
determines which doctests to run.
if command is None, this is determined by parsing sys.argv
Value values are
'all' - find and run all tests in a module
'list' - list the tests in a module
'dump' - dumps tests to stdout
'all' - find and run all tests in a module
'list' - list the tests in a module
'dump' - dumps tests to stdout
argv (List[str], default=None):
if specified, command line flags that might influence beharior.
Expand All @@ -128,9 +128,9 @@ def doctest_module(module_identifier=None, command=None, argv=None, exclude=[],
verbose (int, default=None):
Verbosity level.
0 - disables all text
1 - minimal printing
3 - verbose printing
0 - disables all text
1 - minimal printing
3 - verbose printing
exclude (List[str]):
ignores any modname matching any of these glob-like patterns
Expand Down

0 comments on commit 01d2401

Please sign in to comment.