Skip to content

Docstring format #2

@taion

Description

@taion

Sounds like we have two contenders here:

Sphinx is used by:

  • CPython itself
  • Most libraries in the web ecosystem, including:
    • Flask
    • Django
    • Requests
    • SQLAlchemy
    • Werkzeug
  • IPython
  • Matplotlib
  • Theano

Google format is used by:

  • Many libraries in the ML ecosystem, including:
    • TensorFlow
    • PyTorch
  • Google, presumably?

Additionally many other libraries in the numerical ecosystem use NumPy style, which is fairly similar to Google style.

I am currently leaning toward the Sphinx style, on the basis that it seems more common in the broader ecosystem, especially for web code, and that most of our Python code is in the web domain, so it'd maximize our consistency with the third-party libraries with which we most interact.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions