-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
### What kind of change does this PR introduce? * Integrates the `numpydoc` library for docstring validation. * Fixes the `codespell` configuration (previously was not parsing all relevant files). * Drops Python3.9 coding conventions everywhere. * Reformats existing docstrings using `\*` to use `*` instead. * On a related note, disabled `flake8`'s `RST210` and `RST213` checks that were flagging `*` symbols in docstrings as unterminated *emphasis* and **strong** tags. * Adds a step to the `Indictor.parse_indice` that sanitizes the `*` symbols from `Parameters` entries. * Painstakingly modifies all docstrings to be closer to the `numpydoc` specification. ### Does this PR introduce a breaking change? It should not. Call signatures and docstrings will be slightly changed. ### Other information: https://numpydoc.readthedocs.io/en/latest/validation.html Except for the custom fields that we use to populate our documentation, the docstrings of `xclim` are very consistent and virtually compliant with the standard now. Both `xclim.sdba` and `xclim.core.missing` are not evaluated by `numpydoc` due to major refactoring efforts that are underway (https://github.com/Ouranosinc/xsdba) or needed (#2000).
- Loading branch information
Showing
67 changed files
with
3,392 additions
and
1,818 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,8 @@ ignore = | |
D, | ||
E, | ||
F, | ||
RST210, | ||
RST213, | ||
W503 | ||
per-file-ignores = | ||
xclim/core/locales.py:RST399 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.