Skip to content

Commit e61300e

Browse files
authored
docs: fail on warning (#289)
* docs: fail on warning Make sure to catch warnings during the docs build process. * docs: fix docstrings warnings
1 parent 6bf03cb commit e61300e

2 files changed

Lines changed: 7 additions & 6 deletions

File tree

.readthedocs.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ build:
1414
# Build documentation in the "docs/" directory with Sphinx
1515
sphinx:
1616
configuration: docs/conf.py
17+
fail_on_warning: true
1718

1819
# Optionally build your docs in additional formats such as PDF and ePub
1920
formats: [pdf, epub]

hcloud/actions/client.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -129,10 +129,10 @@ def get_list(
129129
) -> ActionsPageResult:
130130
"""
131131
.. deprecated:: 1.28
132-
Use :func:`client.<resource>.actions.get_list` instead,
133-
e.g. using :attr:`hcloud.certificates.client.CertificatesClient.actions`.
132+
Use :func:`client.<resource>.actions.get_list` instead,
133+
e.g. using :attr:`hcloud.certificates.client.CertificatesClient.actions`.
134134
135-
`Starting 1 October 2023, it will no longer be available. <https://docs.hetzner.cloud/changelog#2023-07-20-actions-list-endpoint-is-deprecated>`_
135+
`Starting 1 October 2023, it will no longer be available. <https://docs.hetzner.cloud/changelog#2023-07-20-actions-list-endpoint-is-deprecated>`_
136136
"""
137137
warnings.warn(
138138
"The 'client.actions.get_list' method is deprecated, please use the "
@@ -150,10 +150,10 @@ def get_all(
150150
) -> list[BoundAction]:
151151
"""
152152
.. deprecated:: 1.28
153-
Use :func:`client.<resource>.actions.get_all` instead,
154-
e.g. using :attr:`hcloud.certificates.client.CertificatesClient.actions`.
153+
Use :func:`client.<resource>.actions.get_all` instead,
154+
e.g. using :attr:`hcloud.certificates.client.CertificatesClient.actions`.
155155
156-
`Starting 1 October 2023, it will no longer be available. <https://docs.hetzner.cloud/changelog#2023-07-20-actions-list-endpoint-is-deprecated>`_
156+
`Starting 1 October 2023, it will no longer be available. <https://docs.hetzner.cloud/changelog#2023-07-20-actions-list-endpoint-is-deprecated>`_
157157
"""
158158
warnings.warn(
159159
"The 'client.actions.get_all' method is deprecated, please use the "

0 commit comments

Comments
 (0)