Skip to content
This repository was archived by the owner on Aug 25, 2024. It is now read-only.

docs: Doctest-able Examples #366

Open
johnandersen777 opened this issue Jan 30, 2020 · 6 comments
Open

docs: Doctest-able Examples #366

johnandersen777 opened this issue Jan 30, 2020 · 6 comments

Comments

@johnandersen777
Copy link

johnandersen777 commented Jan 30, 2020

DFFML is hoping to participate in Google Summer of Code (GSoC) under the Python Software Foundation umbrella. You can read all about what this means at http://python-gsoc.org/. This issue, and any others tagged gsoc and project are not general bugs, but project ideas which one could choose to write a proposal for. Issue tagged as gsoc and project can also be used as an example for what the scope of an idea for a project proposal might look like.

Project Idea: Doctest-able Examples

Project description:
We have a lot of tests, and a lot of command line usage examples. However, we don't have a lot of examples of how to use the plethora of classes, methods, and functions that are provided. The goal of this project is to create code examples for as much of the codebase as possible. We recently switched over numpy style docstrings. So adding information on the arguments, parameters, and return values of things would also be good, but is not a must for this project. The goal is to have working examples that can be tested via the sphinx doctest plugin. This will make it so that users can look at the docs for anything the github pages site, copy paste it into a Python file and it'll work (since the examples you write will be tested on every CI run).

Skills: Python, git
Difficulty level: Intermediate

Related Readings/Links:

Potential mentors: @pdxjohnny, @sudharsana-kjl

Getting Started:
The tests have most of the code you'll need, you'll just need to adapt it from test code into example code.

A good first target would be the functions under the High Level API Docs as you can reference the quickstart guide for their usage.

The scripts/doctest.sh can be used to run the doctests.

What we want to see in your application:
Describe how you intend to solve the problem, and give us some "stretch goals", for example define some percentage of functions with testable examples as "success", and some percentage as "exceeds".

@johnandersen777 johnandersen777 added gsoc Google Summer of Code related project Issues which will take a while to complete labels Jan 30, 2020
@johnandersen777 johnandersen777 added this to the GSoC 2020 milestone Jan 30, 2020
@johnandersen777 johnandersen777 changed the title gsoc: project: Example code for documentation gsoc: project: Doctest-able Examples Feb 4, 2020
@mhash1m
Copy link
Contributor

mhash1m commented Feb 26, 2020

Hi,

Since Python Software Foundation umbrella has been accepted into GSOC, does that mean dffml has also been accepted? I'm interested in applying for this project so had to ask. :)

@johnandersen777
Copy link
Author

@mhash1m Yes!

@johnandersen777
Copy link
Author

@mhash1m @kurianbenoy I've enabled the doctests in the CI and updated the issue with how to run the doctests.

@mhash1m
Copy link
Contributor

mhash1m commented Feb 26, 2020

@pdxjohnny Thanks, I'll dive into it.

@Byambaa0325
Copy link
Contributor

Hi @pdxjohnny , is this project still taking applications? I would like to take on it.

@johnandersen777
Copy link
Author

@Byambaa0325 With regards to GSoC all projects are open to anyone to submit a proposal. Once chosen proposals are announced, then it's only one per person. Applications are open until the 31st.

@johnandersen777 johnandersen777 removed gsoc Google Summer of Code related project Issues which will take a while to complete labels Jan 26, 2021
@johnandersen777 johnandersen777 removed this from the GSoC 2020 milestone Jan 26, 2021
@johnandersen777 johnandersen777 changed the title gsoc: project: Doctest-able Examples docs: Doctest-able Examples Jan 26, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants