Skip to content

Commit

Permalink
docs: fix pydocstyle errors
Browse files Browse the repository at this point in the history
  • Loading branch information
fhchl committed Sep 19, 2020
1 parent 28d10ea commit 6c4761d
Show file tree
Hide file tree
Showing 8 changed files with 5,222 additions and 15 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ nosetests.xml
coverage.xml
*,cover
.hypothesis/
.pytest_cache

# Translations
*.mo
Expand Down
6 changes: 3 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ matrix:
dist: xenial
sudo: true
install:
- pip install 'pytest>=3.6' pytest-cov codecov pydocstyle pycodestyle
- python setup.py install
- pip install codecov
- pip install .[dev]
# command to run tests
script:
- pytest --cov=response tests
- pytest --cov=response --doctest-modules tests
- pydocstyle response.py
- pycodestyle response.py
after_success:
Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Git commit messages follow [Angular style][4]. Uses [python-semantic-release][5]

Create documentation with

pdoc --html --force --output-dir build response.py
pdoc --html --force --output-dir docs response.py

[1]: https://github.com/numpy/numpy/blob/master/doc/HOWTO_DOCUMENT.rst.txt
[2]: http://sphinxcontrib-napoleon.readthedocs.io/en/latest/example_numpy.html
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ _Your handy frequency and impulse response processing object!_
[![codecov](https://codecov.io/gh/fhchl/Response/branch/master/graph/badge.svg)](https://codecov.io/gh/fhchl/Response)

This module supplies the `Response` class: an abstraction of frequency and
impulse responses and a set of handy methods their its processing. It implements a
impulse responses and a set of handy methods for their processing. It implements a
[fluent interface][1] for chaining the processing commands.

Find the documentation [here][2] and the source code on [GitHub][3].
Expand Down
5,206 changes: 5,206 additions & 0 deletions docs/response.html

Large diffs are not rendered by default.

14 changes: 6 additions & 8 deletions response.py
Original file line number Diff line number Diff line change
@@ -1,22 +1,16 @@
"""
_Your handy frequency and impulse response processing object!_
"""Your handy frequency and impulse response processing object.
[![](https://img.shields.io/pypi/l/response.svg?style=flat)](https://pypi.org/project/response/)
[![](https://img.shields.io/pypi/v/response.svg?style=flat)](https://pypi.org/project/response/)
[![travis-ci](https://travis-ci.org/fhchl/Response.svg?branch=master)](https://travis-ci.org/fhchl/Response)
[![codecov](https://codecov.io/gh/fhchl/Response/branch/master/graph/badge.svg)](https://codecov.io/gh/fhchl/Response)
This module supplies the `Response` class: an abstraction of frequency and
impulse responses and a set of handy methods their its processing. It implements a
impulse responses and a set of handy methods for their processing. It implements a
[fluent interface][1] for chaining the processing commands.
Find the documentation [here][2] and the source code on [GitHub][3].
[1]: https://en.wikipedia.org/wiki/Fluent_interface
[2]: https://fhchl.github.io/Response/
[3]: https://github.com/fhchl/Response
```python
import numpy as np
from response import Response
Expand Down Expand Up @@ -51,6 +45,10 @@
# and much more ...
```
[1]: https://en.wikipedia.org/wiki/Fluent_interface
[2]: https://fhchl.github.io/Response/
[3]: https://github.com/fhchl/Response
"""

import warnings
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ version_variable = setup.py:VERSION
upload_to_pypi = true

[tool:pytest]
addopts = --doctest-modules
addopts = --doctest-modules --cov response
4 changes: 3 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,9 @@ def run(self):
url=URL,
py_modules=["response"],
install_requires=REQUIRED,
extras_require={'dev': ['pytest', 'pycodestyle', 'pydocstyle', 'pdoc3']},
extras_require={
'dev': ['pytest', 'pycodestyle', 'pydocstyle', 'pdoc3', 'pytest-cov']
},
include_package_data=True,
license="MIT",
classifiers=[
Expand Down

0 comments on commit 6c4761d

Please sign in to comment.