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)
Firefox Build System
General
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.
Comment hidden (mozreview-request) |
Assignee | ||
Updated•7 years ago
|
Assignee: nobody → ahalberstadt
Status: NEW → ASSIGNED
Comment 2•7 years ago
|
||
I think consistency over the codebase is more important than any particular style of docstring.
Assignee | ||
Comment 3•7 years ago
|
||
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 4•7 years ago
|
||
mozreview-review |
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
Comment 6•7 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/7cc1270bf794
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
status-firefox59:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla59
Updated•6 years ago
|
Product: Core → Firefox Build System
You need to log in
before you can comment on or make changes to this bug.
Description
•