You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Enable ruff's pydocstyle (D) rules and remove docformatter (#2925)
* Enable ruff's pydocstyle (D) rules and set numpy convention
* Fix D406: Section name should end with a newline ('Notes')
* Fix D405L: Section name should be properly capitalized ('See also')
* Fix D104 Missing docstring in public package
* Fix D409: Section underline should match the length of its name
* Ignore a D410/D411 violation
* Fix D103: Missing docstring in public function
* Fix D105: Missing docstring in magic method
* Fix a formatting issue
* Ignore some D rules
```
$ ruff check pygmt doc/conf.py examples --statistics
645 D200 [*] One-line docstring should fit on one line
312 D205 [ ] 1 blank line required between summary line and description
123 D400 [ ] First line should end with a period
30 D401 [ ] First line of docstring should be in imperative mood: "A mock GMT API function that always returns a given value."
30 D412 [*] No blank lines allowed between a section header and its content ("Examples")
12 D202 [*] No blank lines allowed after function docstring (found 1)
```
* Enabel D213 and D410 rules
* Fully remove docformatter
* Update the contributing guides
---------
Co-authored-by: Wei Ji <[email protected]>
0 commit comments