Skip to content

Commit

Permalink
docs: add docs to data storage & enums (#312)
Browse files Browse the repository at this point in the history
  • Loading branch information
bonjourmauko authored Oct 16, 2024
2 parents 5a8cbb3 + 56a918e commit 9f59e66
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 11 deletions.
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ install:
@pip install --upgrade pip
@pip install -r requirements.txt --use-deprecated=legacy-resolver

test: lint test-build
test:
@${MAKE} lint
@${MAKE} test-build

test-build:
@${MAKE} dummy SPHINXOPTS="--quiet --fail-on-warning"
Expand Down
5 changes: 4 additions & 1 deletion source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,10 @@
'ignore-module-all': True
}

napoleon_custom_sections = [('Returns', 'params_style')]
napoleon_custom_sections = [
('Raises', 'params_style'),
('Returns', 'params_style'),
]


def missing_reference(app, env, node, contnode):
Expand Down
8 changes: 8 additions & 0 deletions source/openfisca-python-api/data_storage.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
============
Data Storage
============

.. automodule:: openfisca_core.data_storage
:members:
:imported-members:
:private-members: _decode_file
12 changes: 3 additions & 9 deletions source/openfisca-python-api/enum_array.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,7 @@
Enum & EnumArray
================

.. module:: openfisca_core.indexed_enums

.. autoclass:: Enum
:members:

.. autoclass:: EnumArray
:members:

.. automodule:: openfisca_core.indexed_enums.config
.. automodule:: openfisca_core.indexed_enums
:members:
:imported-members:
:special-members: __eq__, __ne__, __new__, __array_finalize__
1 change: 1 addition & 0 deletions source/openfisca-python-api/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ Modules:

```{toctree}
commons
data_storage
tax-benefit-system
variables
parameters
Expand Down

0 comments on commit 9f59e66

Please sign in to comment.