Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doctest cleanup #131

Merged
merged 47 commits into from
Feb 27, 2017
Merged

Doctest cleanup #131

merged 47 commits into from
Feb 27, 2017

Conversation

chaosphere2112
Copy link
Contributor

Continues @embrown's #114, should be good-to-go.

embrown and others added 30 commits September 21, 2016 08:53
Re-wrote to change ._name and pop old name from elements
if not 'default'. Preserves original objects.
Fixing doctest errors where applicable.
General documentation formatting fixes.
Ran doctests and updated logs.
Removed some modules from run_all_doctests.sh .
Fixed xmldocs so it doesn't try to plot projections/templates.
Started dv3d descriptions.
Minor fixes in Canvas, colormap, and xmldocs.
Make html now reports (almost) no errors.
Re-ran doctests/logging.
Added more template documentation.
Working on documentation in various stages for other files.
embrown and others added 17 commits December 27, 2016 16:38
Re-ran doctests and re-reported.
parsing report output with doctest.py.
Regular expressions can be added via commandline or ignore file.
This will allow us to ignore 'missing' doctests for functions that
don't need documentation, or for aspects of a module/class which
are not functions that errantly get picked up by doctest.testmod.
Added docs/API/build_func_index.py to automatically check a list
of modules/classes, get their non-private functions, and write
the RST for linking to those functions in the documentation out
to API/functions/$MODULE_NAME to create the functions index.
Not all functions written out to the /rst files have been
documented.
what's in them and how to use it.
Added an ignore directory to store files for using doctest_vcs.py's --ifile
option.
in pdf. Re-ran doctest_vcs.py to check functionality after some
minor edits.
Fixes some links.
Adds documentation for dv3d (from documentation site).
changes some xmldocs strings to use .format().
needed for vcs's test suite.

Updated output for 3d graphics methods to match VCS's output.
These will need to be changed after CDAT/dv3d#14
is resolved.
@doutriaux1
Copy link
Contributor

@chaosphere2112 should I wait for the test suite to be completed to merge this in?

@doutriaux1 doutriaux1 merged commit 4268809 into master Feb 27, 2017
@doutriaux1 doutriaux1 deleted the more_more_documentation branch February 27, 2017 15:21
@ghost
Copy link

ghost commented Feb 27, 2017

@chaosphere2112 @doutriaux1, does this mean that the doctests are integrated into the vcs test suite and actually working to validate example code?

@doutriaux1
Copy link
Contributor

almost see #132

aashish24 pushed a commit that referenced this pull request Feb 28, 2017
* Fixes #2, Gfb.rename().
Re-wrote to change ._name and pop old name from elements
if not 'default'. Preserves original objects.

* Working on vcs documentation again.

* Trying to fix doctest strings

* Trying to get testing to work

* Fixing errors for tests

* Working on a script to parse doctest output for error warnings

* Running individual modules through doctest and processing output

* Working on doctest_vcs.py

* Working on doctest scripts

* Working on improving doctest reporting

* Added README.md with links to doctest logs

* Fixed README to be markdown friendly

* Fixed errors in manageElements. Added doctests. General formatting improvements.

* Adding doctests where they are missing.
Fixing doctest errors where applicable.
General documentation formatting fixes.

* Adding doctests/documentation where necessary.
Ran doctests and updated logs.

* Fixing/adding doctests

* Added more examples/doctests to utils.py .
Removed some modules from run_all_doctests.sh .
Fixed xmldocs so it doesn't try to plot projections/templates.
Started dv3d descriptions.

* Tweaked doctest cleanup. Fixed manageElements doctests.

* Organized doctest_info directory.
Minor fixes in Canvas, colormap, and xmldocs.

* Fixed reference to old branch in README.md

* Docstring formatting. Doctest corrections. Changed Not Yet Implemented warning.

* doctest_vcs.py now filters out private functions from the missing
section of the log.

* Fixed more docstring formatting issues.
Make html now reports (almost) no errors.
Re-ran doctests/logging.

* Fixing up template. Deleted old file in scripts/

* Undocumented some internal functions to template.
Added more template documentation.
Working on documentation in various stages for other files.

* Updating logs.

* Fixed taylordiagram examples

* Added example to mtics doc

* Adding doctests to xmldocs:

* Fixed doctests for ticlabels, exts

* Refactored doctest_vcs.py and re-ran tests.

* Working on extracting repetetive params to xmldocs.

* Re-factored xmldocs formatting.
Re-ran doctests and re-reported.

* Added functionality to ignore certain regular expressions when
parsing report output with doctest.py.
Regular expressions can be added via commandline or ignore file.
This will allow us to ignore 'missing' doctests for functions that
don't need documentation, or for aspects of a module/class which
are not functions that errantly get picked up by doctest.testmod.

* Added an Index of VCS functions for the pdf output.
Added docs/API/build_func_index.py to automatically check a list
of modules/classes, get their non-private functions, and write
the RST for linking to those functions in the documentation out
to API/functions/$MODULE_NAME to create the functions index.
Not all functions written out to the /rst files have been
documented.

* Added README.md to doctest_info directories briefly explaining
what's in them and how to use it.
Added an ignore directory to store files for using doctest_vcs.py's --ifile
option.

* Formatted :Example: sections to <=80 lines so they look better
in pdf. Re-ran doctest_vcs.py to check functionality after some
minor edits.

* Removed Makefile call to old function

* Adds doctest_info/ to .gitignore.
Fixes some links.
Adds documentation for dv3d (from documentation site).
changes some xmldocs strings to use .format().

* Added '.. pragma: skip-doctest' statements in some places they are
needed for vcs's test suite.

Updated output for 3d graphics methods to match VCS's output.
These will need to be changed after CDAT/dv3d#14
is resolved.

* Added lots of '.. pragma: skip-doctest' and fixed some broken tests.

* Added skip-doctest to some docstrings.

* Standardized print statements for .list()

* Added things to stop tests from breaking

* Removed some unused files, fixed one context-dependent doctest
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants