Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generate API using pre-commit #19

Merged
merged 3 commits into from
Feb 9, 2022
Merged

Generate API using pre-commit #19

merged 3 commits into from
Feb 9, 2022

Conversation

malmans2
Copy link
Member

@malmans2 malmans2 commented Feb 9, 2022

Closes #18
I added a pre-commit task that generates docs/api.md.
Nothing fancy, but shows all documented functions.

The only caveat is that we have to use google-style docstrings rather than numpy-style:
Example:

def function(param1: int, param2: str) -> bool:
    """Example function.

    Args:
        param1: The first parameter.
        param2: The second parameter.

    Returns:
        The return value. True for success, False otherwise.
    """

@malmans2
Copy link
Member Author

malmans2 commented Feb 9, 2022

Merging to test, looks like workflows are not working from external forks

@malmans2 malmans2 merged commit 86642ab into JMMP-Group:main Feb 9, 2022
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.

Documentation
1 participant