Skip to content

improved docstrings#30

Open
orgh0 wants to merge 2 commits into
masterfrom
imporved-docstrings-new
Open

improved docstrings#30
orgh0 wants to merge 2 commits into
masterfrom
imporved-docstrings-new

Conversation

@orgh0

@orgh0 orgh0 commented Jul 12, 2018

Copy link
Copy Markdown
Collaborator

@sushain97 Docstring isolated PR

@coveralls

Copy link
Copy Markdown

Pull Request Test Coverage Report for Build 182

  • 2 of 2 (100.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 80.441%

Totals Coverage Status
Change from base Build 159: 0.0%
Covered Lines: 584
Relevant Lines: 726

💛 - Coveralls

2 similar comments
@coveralls

Copy link
Copy Markdown

Pull Request Test Coverage Report for Build 182

  • 2 of 2 (100.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 80.441%

Totals Coverage Status
Change from base Build 159: 0.0%
Covered Lines: 584
Relevant Lines: 726

💛 - Coveralls

@coveralls

Copy link
Copy Markdown

Pull Request Test Coverage Report for Build 182

  • 2 of 2 (100.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 80.441%

Totals Coverage Status
Change from base Build 159: 0.0%
Covered Lines: 584
Relevant Lines: 726

💛 - Coveralls

@coveralls

coveralls commented Jul 12, 2018

Copy link
Copy Markdown

Pull Request Test Coverage Report for Build 183

  • 2 of 2 (100.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-0.03%) to 80.414%

Totals Coverage Status
Change from base Build 159: -0.03%
Covered Lines: 583
Relevant Lines: 725

💛 - Coveralls

@sushain97

Copy link
Copy Markdown
Member

This is a good start. The docs should look more like this:

https://github.com/apertium/streamparser/blob/master/streamparser.py#L187

So that they can be used to generate a pretty HTML page.

@orgh0

orgh0 commented Jul 16, 2018

Copy link
Copy Markdown
Collaborator Author

@sushain97 Alright I'll change all the docstrings to that format !

@orgh0

orgh0 commented Jul 24, 2018

Copy link
Copy Markdown
Collaborator Author

@sushain97 I've updated the docstrings. I'll cover more functions if required. How do these look?
Suggestions for changes?

@sushain97 sushain97 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I looked through some of this but there are a ton of spelling mistakes that should be fixed.

Comment thread apertium/__init__.py
def update_modes(pair_path): # type: (str) -> None
modes = search_path(pair_path)
def update_modes(path): # type: (str) -> None
"""Updates the install modes

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

install => installed

Comment thread apertium/__init__.py
Args:
path(str): A string that is the absolute location to the modes to be installed

Yelids:

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yelids => Yields

This won't be picked up by the parser.

Moreover, it should probably be returns.

Actually, does it even return anything?

Comment thread apertium/__init__.py
"""Updates the install modes

Args:
path(str): A string that is the absolute location to the modes to be installed

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This doesn't make it clear that this path will be added, the old ones won't be removed.



class Analyzer:
"""An Analyzer object containing it's analysis mode and langugage

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's => its

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

langugage => language

Comment thread apertium/__init__.py
"""Updates the install modes

Args:
path(str): A string that is the absolute location to the modes to be installed

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

path(str) => path (str)

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.

3 participants