Closed Bug 1419772 Opened 7 years ago Closed 7 years ago

[docs] Enable sphinx.ext.napoleon for more readable docstrings

Categories

(Firefox Build System :: General, enhancement)

enhancement
Not set
normal

Tracking

(firefox59 fixed)

RESOLVED FIXED
mozilla59
Tracking Status
firefox59 --- fixed

People

(Reporter: ahal, Assigned: ahal)

Details

Attachments

(1 file)

http://www.sphinx-doc.org/en/stable/ext/napoleon.html

This will allow us to use either the Google or numpy style guide for docstrings which tend to be more human readable than the standard sphinx format.
Assignee: nobody → ahalberstadt
Status: NEW → ASSIGNED
I think consistency over the codebase is more important than any particular style of docstring.
I half agree, mozilla-central is a repository of many projects. While I do think each "project" should be consistent within itself, I don't agree that we should enforce a particular style across the board. For example, we allow projects to specify their own custom .flake8 configs for linting.

That said, I do think a linter that enforces at least some kind of docstring consistency (which can maybe be configured to the preferred style per-project), would be a good idea.
Comment on attachment 8930963 [details]
Bug 1419772 - [docs] Enable the sphinx.ext.napoleon extension,

https://reviewboard.mozilla.org/r/202052/#review207486
Attachment #8930963 - Flags: review?(gps) → review+
Pushed by gszorc@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/7cc1270bf794
[docs] Enable the sphinx.ext.napoleon extension, r=gps
https://hg.mozilla.org/mozilla-central/rev/7cc1270bf794
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla59
Product: Core → Firefox Build System
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: