• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

benbovy / xarray-simlab / 357
99%

Build:
DEFAULT BRANCH: master
Ran 10 Jan 2020 03:47PM UTC
Jobs 5
Files 10
Run time 2min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
357

push

travis-ci

benbovy
Automatically generate docstring for each existing and newly written processes (#67)

* Automatically generates a docstring for each existing and newly written process, if autodoc=True in the process decorator.

* Update autodoc to deal with pytest

* Reorganize how docstring is generated/incorporated

The formatting of the docstring has been outsourced to a separate
function in formatting.add_attribute_section(). This way, the
render_docstrings() only needs to call that function and pass its
return to the __doc__ attribute of the base class (and subclasses).

There are more suggestions in the PR but I had the impression that it's
beneficial to update the recent code.

* Set conditional string assignment, wrap variable description

For readability, variable description in var_details() now assigned
with a separate conditional expression.

To account for indents in the docstring, variable description is now
wrapped after 62 characters.

* explicit if-clause

* Include a test for `add_attribute_section()`

With this commit, a test for the autodoc-feature will be implemented.
For now, however, pytest returns an AssertionError because
`add_attribute_section()` in `test_add_attribute_section()` returns
the docstring twice. Reason unknown.

Also, `@pytest.mark.xfail` was introduced to circumvent failures in
`test_process_decorator()` and `test_add_attribute_section()`. This
will be only temporary.

* Align recent changes of master with autodoc

Fork is now synched with latest commit 1d995b4 of original repo.
whats_new.rst has been updated. Placeholder and if-clause if no
description has been given for individual variables. Docstring for
`process.process.py` has been updated. Lastly, tests included for
`add_attribute_section()` and `process_decorator()` in `test_formatting`
and `test_process`, respectively.

* Added parameter note for test_add_attribute_section()

* Rewrite whats_new.rst and xsimlab.process docstring

1261 of 1270 relevant lines covered (99.29%)

2.96 hits per line

Jobs
ID Job ID Ran Files Coverage
1 357.1 (CONDA_ENV=py36) 10 Jan 2020 03:48PM UTC 0
99.13
Travis Job 357.1
2 357.2 (CONDA_ENV=py37) 10 Jan 2020 03:48PM UTC 0
99.13
Travis Job 357.2
3 357.3 (CONDA_ENV=py38) 10 Jan 2020 03:48PM UTC 0
98.13
Travis Job 357.3
5 357.5 (CONDA_ENV=py37-xarray-dev) 10 Jan 2020 03:47PM UTC 0
Travis Job 357.5
6 357.6 (CONDA_ENV=py37-attrs-dev) 10 Jan 2020 03:50PM UTC 0
Travis Job 357.6
Source Files on build 357
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #357
  • d94c6291 on github
  • Prev Build on master (#353)
  • Next Build on master (#361)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc