Skip to content

Commit

Permalink
Update xrefs in docs.
Browse files Browse the repository at this point in the history
  • Loading branch information
domdfcoding committed Jul 22, 2021
1 parent b5b2011 commit 6141537
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 5 deletions.
4 changes: 2 additions & 2 deletions apeye/rate_limiter.py
Expand Up @@ -112,7 +112,7 @@ def rate_limit_wrapper(*args, **kwargs):

class RateLimitAdapter(CacheControlAdapter):
r"""
Custom :class:`~.CacheControlAdapter` to limit the rate of requests to 5 per second.
Custom :class:`cachecontrol.adapter.CacheControlAdapter` to limit the rate of requests to 5 per second.
:param cache:
:param cache_etags:
Expand Down Expand Up @@ -155,7 +155,7 @@ def send(self, request: requests.PreparedRequest, cacheable_methods=None, **kwar
@rate_limit(0.2)
def rate_limited_send(self, *args, **kwargs) -> requests.Response:
"""
Wrapper around :meth:`CacheControlAdapter.send <CacheControl.CacheControlAdapter.send>`
Wrapper around :meth:`CacheControlAdapter.send <cachecontrol.adapter.CacheControlAdapter.send>`
to limit the rate of requests.
""" # noqa: D400

Expand Down
2 changes: 1 addition & 1 deletion apeye/requests_url.py
Expand Up @@ -37,7 +37,7 @@
# this package
from apeye.url import URL

__all__ = ["RequestsURL", "TrailingRequestsURL"]
__all__ = ["RequestsURL", "TrailingRequestsURL", "_R"]

_ParamsMappingValueType = Union[str, bytes, int, float, Iterable[Union[str, bytes, int, float]]]
_Data = Union[None, str, bytes, MutableMapping[str, Any], Iterable[Tuple[str, Optional[str]]], IO]
Expand Down
7 changes: 7 additions & 0 deletions doc-source/conf.py
Expand Up @@ -75,3 +75,10 @@ def setup(app):
from sphinx_toolbox.latex import better_header_layout

app.connect("config-inited", lambda app, config: better_header_layout(config))


nitpicky = True
ignore_missing_xrefs = [
"^requests.structures.CaseInsensitiveDict$",
"^cachecontrol.adapter.CacheControlAdapter",
]
2 changes: 1 addition & 1 deletion pyproject.toml
Expand Up @@ -65,7 +65,7 @@ extensions = [
"sphinx_toolbox_experimental.autosummary_widths",
"sphinx_toolbox_experimental.needspace",
"sphinx_toolbox_experimental.peps",
"sphinx_toolbox_experimental.toml",
"sphinx_toolbox_experimental.missing_xref",
]
sphinxemoji_style = "twemoji"
gitstamp_fmt = "%d %b %Y"
Expand Down
9 changes: 8 additions & 1 deletion repo_helper.yml
Expand Up @@ -56,10 +56,17 @@ extra_sphinx_extensions:
- sphinx_toolbox_experimental.autosummary_widths
- sphinx_toolbox_experimental.needspace
- sphinx_toolbox_experimental.peps
- sphinx_toolbox_experimental.toml
- sphinx_toolbox_experimental.missing_xref

conda_extras:
- limiter

manifest_additional:
- include apeye/public_suffix_list.dat

sphinx_conf_epilogue:
- nitpicky = True
- "ignore_missing_xrefs = ["
- " '^requests.structures.CaseInsensitiveDict$',"
- " '^cachecontrol.adapter.CacheControlAdapter',"
- "]"

0 comments on commit 6141537

Please sign in to comment.