Skip to content

Commit ee7ad61

Browse files
authored
Improve doc strings of all functions (#269)
* initial documentation * Fix spaces * Examples, more documentation, remove typing from docstrnigs. * wget version downgrade 1.20.3.20190531 * whitespaces * Fixed defaults * fix example in `Client` * Client and util docstrings added Also added some typings * mypy and pycodestyle fixes * Fixed examples in docstrings * Added docstring to `common.py` file, and remove some unsed importations. * logo documentation * Server.py docstrings * pycodestyle fixes
1 parent 38b9248 commit ee7ad61

File tree

7 files changed

+1562
-375
lines changed

7 files changed

+1562
-375
lines changed

.github/workflows/build-and-test.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ jobs:
1616

1717
- name: Install choco packages
1818
run: |
19-
choco install 7zip python wget
19+
choco install 7zip python
20+
choco install --allow-downgrade wget --version 1.20.3.20190531
2021
2122
- name: Cache snap7-archive
2223
id: snap7-archive

doc/conf.py

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929

3030
# Add any Sphinx extension module names here, as strings. They can be extensions
3131
# coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
32-
extensions = ['sphinx.ext.autodoc', 'sphinx.ext.coverage', 'sphinx.ext.viewcode']
32+
extensions = ['sphinx.ext.autodoc', 'sphinx.ext.coverage', 'sphinx.ext.viewcode', 'sphinx.ext.napoleon']
3333

3434
# Add any paths that contain templates here, relative to this directory.
3535
templates_path = ['_templates']
@@ -244,3 +244,19 @@
244244

245245
# How to display URL addresses: 'footnote', 'no', or 'inline'.
246246
#texinfo_show_urls = 'footnote'
247+
248+
249+
# Napoleon settings
250+
napoleon_google_docstring = True
251+
napoleon_numpy_docstring = True
252+
napoleon_include_init_with_doc = True
253+
napoleon_include_private_with_doc = False
254+
napoleon_include_special_with_doc = True
255+
napoleon_use_admonition_for_examples = False
256+
napoleon_use_admonition_for_notes = False
257+
napoleon_use_admonition_for_references = False
258+
napoleon_use_ivar = False
259+
napoleon_use_param = True
260+
napoleon_use_rtype = True
261+
napoleon_type_aliases = None
262+
napoleon_attr_annotations = True

0 commit comments

Comments
 (0)