Skip to content

Commit

Permalink
Add module docstrings (#49)
Browse files Browse the repository at this point in the history
* Change autodoc typehints to signature

* Add module docstrings
  • Loading branch information
jessicasyu authored Aug 17, 2023
1 parent 99e7655 commit 2bd2046
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 5 deletions.
4 changes: 2 additions & 2 deletions docs/_templates/custom_module.rst
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{{ objname | escape | underline}}

.. automodule:: {{ fullname }}
:members:
:undoc-members:
:members:
:undoc-members:

{% block attributes %}
{% if attributes %}
Expand Down
4 changes: 2 additions & 2 deletions docs/_templates/custom_summary.rst
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{{ fullname | escape | underline}}

.. automodule:: {{ fullname }}
:members:
:undoc-members:
:members:
:undoc-members:

{% block attributes %}
{% if attributes %}
Expand Down
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
autodoc_mock_imports = []

# Controls how to represent typehints.
autodoc_typehints = "description"
autodoc_typehints = "signature"

# -- Options for HTML output -------------------------------------------------

Expand Down
2 changes: 2 additions & 0 deletions src/arcade_collection/input/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
"""Tasks for generating input files for ARCADE."""

from prefect import task

from .convert_to_cells_file import convert_to_cells_file
Expand Down
2 changes: 2 additions & 0 deletions src/arcade_collection/output/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
"""Tasks for processing output files from ARCADE."""

from prefect import task

from .convert_model_units import convert_model_units
Expand Down

0 comments on commit 2bd2046

Please sign in to comment.