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
and class signatures. If you use an IDE, you may be able to configure it to assist you with writing
62
+
docstrings in the correct format. For `PyCharm`, you can configure this under
63
+
`File -> Settings -> Tools -> Python Integrated Tools -> Docstrings`. For `Visual Studio Code`, you can obtain
64
+
docstring generator extensions from the [VisualStudio Marketplace](https://marketplace.visualstudio.com/).
65
+
66
+
When documenting Python classes, we adhere to the convention of including docstrings in their `__init__` method,
67
+
rather than as a class level docstring. Docstrings should only be included at the class-level if a class does
68
+
not posess an `__init__` method, for example because it is a static class.
63
69
64
70
#### Conventions
65
71
@@ -237,4 +243,4 @@ Checklist to run through before a PR is considered complete:
237
243
-[Documentation](#building-documentation) is built locally and checked for errors/warning in the build log and any issues in the final docs, including API docs.
238
244
- For any new functionality or new examples, appropriate links are added (`README.md`, `doc/source/index.rst`, `doc/source/overview/getting_started.md`,`doc/source/overview/algorithms.md`, `doc/source/examples`), see [Documentation for alibi](doc/README.md) for more information.
239
245
- For any changes to existing algorithms, run the example notebooks manually and check that everything still works as expected and there are no extensive warnings/outputs from dependencies.
240
-
- Any changes to dependencies are reflected in the appropriate place (`setup.py` for runtime and optional dependencies, `requirements/dev.txt` for development dependencies and `requirements/doc.txt` for documentation dependencies).
246
+
- Any changes to dependencies are reflected in the appropriate place (`setup.py` for runtime and optional dependencies, `requirements/dev.txt` for development dependencies and `requirements/doc.txt` for documentation dependencies).
0 commit comments