Skip to content

Commit

Permalink
Merge pull request #185 from sbesson/writer_docstrings
Browse files Browse the repository at this point in the history
Convert `ome_zarr.writer.write_multiscale` to use docstrings markup
  • Loading branch information
sbesson authored Apr 5, 2022
2 parents bbf7926 + 6f462e7 commit fcb4c06
Show file tree
Hide file tree
Showing 3 changed files with 179 additions and 126 deletions.
5 changes: 3 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,9 @@ repos:
# default black line length is 88
"--max-line-length=88",
# Conflicts with black: E203 whitespace before ':'
"--ignore=E203",
"--rst-roles=class,func,ref,mod,const",
# Does not recognize deprecated directive in docstrings
"--ignore=E203,RST303",
"--rst-roles=class,func,ref,mod,meth,const",
]

- repo: https://github.com/pre-commit/mirrors-mypy
Expand Down
10 changes: 10 additions & 0 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
extensions = [
"sphinx.ext.doctest",
"sphinx.ext.autodoc",
"sphinx.ext.intersphinx",
]

# use index.rst instead of contents.rst
Expand All @@ -18,3 +19,12 @@
project = "ome-zarr-py"
copyright = "Open Microscopy Environment" # noqa: A001
author = "Open Microscopy Environment"

# Example configuration for intersphinx: refer to the Python standard library.
# use in refs e.g:
# :ref:`comparison manual <python:comparisons>`
intersphinx_mapping = {
"python": ("https://docs.python.org/", None),
"numpy": ("https://numpy.org/doc/stable/", None),
"zarr": ("https://zarr.readthedocs.io/en/stable/", None),
}
Loading

0 comments on commit fcb4c06

Please sign in to comment.