Skip to content

Commit c66ce8a

Browse files
hotfix: Fix documentation (#135)
* build: Upgrade documentation packages * refactor: Reduce mkdocs warnings * build: Upgrade version
1 parent 3eacb61 commit c66ce8a

File tree

9 files changed

+70
-46
lines changed

9 files changed

+70
-46
lines changed

CHANGELOG.md

+11
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,17 @@
22
# Changelog
33
All notable changes to this project will be documented in this file.
44

5+
### [2.3.1]
6+
7+
#### Fixed
8+
9+
- Fix documentation deployment not working properly after the latest updates
10+
11+
#### Updated
12+
13+
- Update mkdocs related packages to the latest versions
14+
- Reduce the amount of warnings generated by mkdocs
15+
516
### [2.3.0]
617

718
#### Updated

mkdocs.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -77,12 +77,12 @@ plugins:
7777
- mkdocstrings:
7878
handlers:
7979
python:
80-
import:
80+
inventories:
8181
- https://docs.python.org/3/objects.inv
8282
- https://mkdocstrings.github.io/objects.inv
8383
- https://mkdocstrings.github.io/griffe/objects.inv
8484
- https://numpy.org/doc/stable/objects.inv
85-
- https://pytorch.org/docs/master/objects.inv
85+
- https://pytorch.org/docs/stable/objects.inv
8686
options:
8787
docstring_style: google
8888
docstring_options:

poetry.lock

+45-32
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "quadra"
3-
version = "2.3.0"
3+
version = "2.3.1"
44
description = "Deep Learning experiment orchestration library"
55
authors = [
66
"Federico Belotti <[email protected]>",
@@ -123,14 +123,14 @@ pytest_env = "~1.1"
123123
optional = true
124124

125125
[tool.poetry.group.docs.dependencies]
126-
mkdocs = "1.5.2"
126+
mkdocs = "~1.6"
127127
mkdocs_literate_nav = "0.6.0"
128128
mkdocs_section_index = "0.3.6"
129-
mkdocstrings = "0.23.0"
130-
mkdocs_autorefs = "0.5.0"
129+
mkdocstrings = "~0.28"
130+
mkdocs_autorefs = "~1.4"
131131
mkdocs_gen_files = "0.5.0"
132132
mkdocs_material = "9.2.8"
133-
mkdocstrings_python = "1.6.2"
133+
mkdocstrings_python = "~1.16"
134134
mkdocs_material_extensions = "1.1.1"
135135
mike = "1.1.2"
136136
cairosvg = "2.7.0"

quadra/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
__version__ = "2.3.0"
1+
__version__ = "2.3.1"
22

33

44
def get_version():

quadra/callbacks/lightning.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def _scale_batch_size(
4646
however in practise a few are needed
4747
init_val: initial batch size to start the search with
4848
max_trials: max number of increases in batch size done before
49-
algorithm is terminated
49+
algorithm is terminated
5050
batch_arg_name: name of the attribute that stores the batch size.
5151
It is expected that the user has provided a model or datamodule that has a hyperparameter
5252
with that name. We will look for this attribute name in the following places

quadra/datasets/ssl.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,9 @@ class TwoSetAugmentationDataset(Dataset):
7575
return the original image.
7676
7777
Example:
78-
>>> images[0] = global_transform[0](original_image)
79-
>>> images[1] = global_transform[1](original_image)
80-
>>> images[2:] = local_transform(s)(original_image)
78+
>>> `images[0] = global_transform[0](original_image)`
79+
>>> `images[1] = global_transform[1](original_image)`
80+
>>> `images[2:] = local_transform(s)(original_image)`
8181
"""
8282

8383
def __init__(

quadra/utils/export.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ def _safe_export_half_precision_onnx(
324324
onnx_config: DictConfig,
325325
input_shapes: list[Any],
326326
input_names: list[str],
327-
):
327+
) -> bool:
328328
"""Check that the exported half precision ONNX model does not contain NaN values. If it does, attempt to export
329329
the model with a more stable export and overwrite the original model.
330330

quadra/utils/tests/fixtures/dataset/imagenette.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def imagenette_dataset(tmp_path: Path) -> str:
4343
4444
Args:
4545
tmp_path: Path to temporary directory
46-
request: Pytest SubRequest object
46+
4747
Yields:
4848
Path to imagenette dataset folder
4949
"""

0 commit comments

Comments
 (0)