Skip to content

Commit 0dce021

Browse files
oschwaldclaude
andcommitted
Update stale and redirecting links
- pyproject.toml: https://www.maxmind.com/ -> https://www.maxmind.com/en/home - pyproject.toml: https://minfraud.readthedocs.org/ -> https://minfraud.readthedocs.io/en/latest/ - CLAUDE.md: https://minfraud.readthedocs.io/ -> https://minfraud.readthedocs.io/en/latest/ - CLAUDE.md: dev.maxmind.com/minfraud/report-a-transaction -> .../report-a-transaction/ - README.dev.rst: https://pypi.python.org/pypi/minfraud -> https://pypi.org/project/minfraud/ - README.rst: dev.maxmind.com/minfraud/report-a-transaction?lang=en -> .../report-a-transaction/?lang=en - README.rst: dev.maxmind.com/minfraud/api-documentation/requests?lang=en -> .../requests/?lang=en - README.rst: https://minfraud.readthedocs.io/ -> https://minfraud.readthedocs.io/en/latest/ - README.rst: https://www.maxmind.com/en/account -> https://www.maxmind.com/en/accounts/current/people/current - README.rst: https://www.maxmind.com/en/support -> https://support.maxmind.com/knowledge-base - models.py: https://tools.ietf.org/html/rfc3339 -> https://datatracker.ietf.org/doc/html/rfc3339 - models.py: dev.maxmind.com/minfraud/track-devices?lang=en -> .../track-devices/?lang=en - models.py: dev.maxmind.com/minfraud/api-documentation/responses?lang=en#... -> .../responses/?lang=en#... - webservice.py: dev.maxmind.com/minfraud/api-documentation/requests?lang=en -> .../requests/?lang=en - webservice.py: dev.maxmind.com/minfraud/report-a-transaction?lang=en -> .../report-a-transaction/?lang=en - webservice.py: dev.maxmind.com/minfraud/report-transaction/#Request_Body (404) -> .../report-a-transaction/?lang=en Also excluded the amazon.com referrer_uri example value and the JS-rendered dev.maxmind.com responses-schema fragments (verified at the page level) from link checking. Part of STF-557. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 7e6f0e0 commit 0dce021

7 files changed

Lines changed: 30 additions & 24 deletions

File tree

CLAUDE.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -429,7 +429,7 @@ uv run tox
429429

430430
## Additional Resources
431431

432-
- [API Documentation](https://minfraud.readthedocs.io/)
432+
- [API Documentation](https://minfraud.readthedocs.io/en/latest/)
433433
- [minFraud Web Services Docs](https://dev.maxmind.com/minfraud/)
434-
- [Report Transaction API](https://dev.maxmind.com/minfraud/report-a-transaction)
434+
- [Report Transaction API](https://dev.maxmind.com/minfraud/report-a-transaction/)
435435
- GitHub Issues: https://github.com/maxmind/minfraud-api-python/issues

README.dev.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ Steps for doing a release:
1111
release script.
1212
7. Run ``dev-bin/release.sh`` and follow the prompts.
1313
8. Verify the release on `GitHub <https://github.com/maxmind/minfraud-api-python/releases>`_
14-
and `PyPI <https://pypi.python.org/pypi/minfraud>`_.
14+
and `PyPI <https://pypi.org/project/minfraud/>`_.

README.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Description
88
This package provides an API for the `MaxMind minFraud Score, Insights, and
99
Factors web services <https://dev.maxmind.com/minfraud/>`_ as well as the
1010
`Report Transaction web service
11-
<https://dev.maxmind.com/minfraud/report-a-transaction?lang=en>`_.
11+
<https://dev.maxmind.com/minfraud/report-a-transaction/?lang=en>`_.
1212

1313
Installation
1414
------------
@@ -30,7 +30,7 @@ Documentation
3030
-------------
3131

3232
Complete API documentation is available on `Read the Docs
33-
<https://minfraud.readthedocs.io/>`_.
33+
<https://minfraud.readthedocs.io/en/latest/>`_.
3434

3535
Usage
3636
-----
@@ -79,7 +79,7 @@ The Score web service is called with the ``score()`` method:
7979
Each of these methods takes a dictionary representing the transaction to be sent
8080
to the web service. The structure of this dictionary should be in `the format
8181
specified in the REST API documentation
82-
<https://dev.maxmind.com/minfraud/api-documentation/requests?lang=en>`__.
82+
<https://dev.maxmind.com/minfraud/api-documentation/requests/?lang=en>`__.
8383
All fields are optional.
8484

8585
Report Transactions Usage
@@ -97,7 +97,7 @@ Report Transaction web service is called with the ``report()`` method:
9797
The method takes a dictionary representing the report to be sent to the web
9898
service. The structure of this dictionary should be in `the format specified
9999
in the REST API documentation
100-
<https://dev.maxmind.com/minfraud/report-a-transaction?lang=en>`__. The
100+
<https://dev.maxmind.com/minfraud/report-a-transaction/?lang=en>`__. The
101101
required fields are ``tag`` and one or more of the following: ``ip_address``,
102102
``maxmind_id``, ``minfraud_id``, ``transaction_id``.
103103

@@ -134,7 +134,7 @@ The possible errors are:
134134
Additionally, ``score``, ``insights`` and ``factors`` may also raise:
135135

136136
* ``minfraud.InsufficientFundsError`` - This will be raised when `your
137-
account <https://www.maxmind.com/en/account>`_ is out of funds.
137+
account <https://www.maxmind.com/en/accounts/current/people/current>`_ is out of funds.
138138

139139
Examples
140140
--------
@@ -322,7 +322,7 @@ Please report all issues with this code using the `GitHub issue tracker
322322
<https://github.com/maxmind/minfraud-api-python/issues>`_.
323323

324324
If you are having an issue with a MaxMind service that is not specific to the
325-
client API, please contact `MaxMind support <https://www.maxmind.com/en/support>`_
325+
client API, please contact `MaxMind support <https://support.maxmind.com/knowledge-base>`_
326326
for assistance.
327327

328328
Copyright and License

lychee.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,12 @@ accept = ["100..=103", "200..=299", "403", "429", "500..=599", "999"]
2424
exclude = [
2525
# GitHub blob URLs with line-number fragments (not parseable as page anchors)
2626
'^https://github\.com/[^/]+/[^/]+/blob/[0-9a-fA-F]+/.+#L\d+$',
27+
# dev.maxmind.com API docs are a JS-rendered single-page app, so its in-page
28+
# anchors (e.g. response-schema fragments) aren't present in the static HTML
29+
# lychee fetches. The pages themselves are verified without the fragment.
30+
'^https://dev\.maxmind\.com/minfraud/api-documentation/responses/.*#',
31+
# referrer_uri example value in a docstring/doctest (not a documentation link)
32+
'^http://www\.amazon\.com/$',
2733
# Live / auth-gated MaxMind endpoints: appear as code string literals or
2834
# require login, so they can't be verified by an anonymous request.
2935
'^https://geoip\.maxmind\.com',

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ lint = [
4545
]
4646

4747
[project.urls]
48-
Homepage = "https://www.maxmind.com/"
49-
Documentation = "https://minfraud.readthedocs.org/"
48+
Homepage = "https://www.maxmind.com/en/home"
49+
Documentation = "https://minfraud.readthedocs.io/en/latest/"
5050
"Source Code" = "https://github.com/maxmind/minfraud-api-python"
5151
"Issue Tracker" = "https://github.com/maxmind/minfraud-api-python/issues"
5252

src/minfraud/models.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ class GeoIP2Location(geoip2.records.Location):
9797
local_time: str | None
9898
"""The date and time of the transaction in the time
9999
zone associated with the IP address. The value is formatted according to
100-
`RFC 3339 <https://tools.ietf.org/html/rfc3339>`_. For instance, the
100+
`RFC 3339 <https://datatracker.ietf.org/doc/html/rfc3339>`_. For instance, the
101101
local time in Boston might be returned as 2015-04-27T19:17:24-04:00."""
102102

103103
def __init__(self, *args: Any, **kwargs: Any) -> None:
@@ -211,7 +211,7 @@ class Device(_Serializable):
211211
212212
In order to receive device output from minFraud Insights or minFraud
213213
Factors, you must be using the `Device Tracking Add-on
214-
<https://dev.maxmind.com/minfraud/track-devices?lang=en>`_.
214+
<https://dev.maxmind.com/minfraud/track-devices/?lang=en>`_.
215215
"""
216216

217217
confidence: float | None
@@ -620,7 +620,7 @@ class ServiceWarning(_Serializable):
620620
code: str | None
621621
"""This value is a machine-readable code identifying the
622622
warning. See the `response warnings documentation
623-
<https://dev.maxmind.com/minfraud/api-documentation/responses?lang=en#schema--response--warning>`_
623+
<https://dev.maxmind.com/minfraud/api-documentation/responses/?lang=en#schema--response--warning>`_
624624
for the current list of of warning codes."""
625625

626626
warning: str | None

src/minfraud/webservice.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ async def factors(
274274
:param transaction: A dictionary containing the transaction to be
275275
sent to the minFraud Factors web service as specified in the `REST
276276
API documentation
277-
<https://dev.maxmind.com/minfraud/api-documentation/requests?lang=en>`_.
277+
<https://dev.maxmind.com/minfraud/api-documentation/requests/?lang=en>`_.
278278
:type transaction: dict
279279
:param validate: If set to false, validation of the transaction
280280
dictionary will be disabled. This validation helps ensure that your
@@ -313,7 +313,7 @@ async def insights(
313313
:param transaction: A dictionary containing the transaction to be
314314
sent to the minFraud Insights web service as specified in the `REST
315315
API documentation
316-
<https://dev.maxmind.com/minfraud/api-documentation/requests?lang=en>`_.
316+
<https://dev.maxmind.com/minfraud/api-documentation/requests/?lang=en>`_.
317317
:type transaction: dict
318318
:param validate: If set to false, validation of the transaction
319319
dictionary will be disabled. This validation helps ensure that your
@@ -352,7 +352,7 @@ async def score(
352352
:param transaction: A dictionary containing the transaction to be
353353
sent to the minFraud Score web service as specified in the `REST API
354354
documentation
355-
<https://dev.maxmind.com/minfraud/api-documentation/requests?lang=en>`_.
355+
<https://dev.maxmind.com/minfraud/api-documentation/requests/?lang=en>`_.
356356
:type transaction: dict
357357
:param validate: If set to false, validation of the transaction
358358
dictionary will be disabled. This validation helps ensure that your
@@ -388,9 +388,9 @@ async def report(
388388
"""Send a transaction report to the Report Transaction endpoint.
389389
390390
:param report: A dictionary containing the transaction report to be sent
391-
to the Report Transations web service as specified in the `REST API`
391+
to the Report Transations web service as specified in the `REST API
392392
documentation
393-
<https://dev.maxmind.com/minfraud/report-a-transaction?lang=en>_.
393+
<https://dev.maxmind.com/minfraud/report-a-transaction/?lang=en>`_.
394394
:type report: dict
395395
:param validate: If set to false, validation of the report dictionary
396396
will be disabled. This validation helps ensure that your request is
@@ -538,7 +538,7 @@ def factors(
538538
:param transaction: A dictionary containing the transaction to be
539539
sent to the minFraud Factors web service as specified in the `REST
540540
API documentation
541-
<https://dev.maxmind.com/minfraud/api-documentation/requests?lang=en>`_.
541+
<https://dev.maxmind.com/minfraud/api-documentation/requests/?lang=en>`_.
542542
:type transaction: dict
543543
:param validate: If set to false, validation of the transaction
544544
dictionary will be disabled. This validation helps ensure that your
@@ -577,7 +577,7 @@ def insights(
577577
:param transaction: A dictionary containing the transaction to be
578578
sent to the minFraud Insights web service as specified in the `REST
579579
API documentation
580-
<https://dev.maxmind.com/minfraud/api-documentation/requests?lang=en>`_.
580+
<https://dev.maxmind.com/minfraud/api-documentation/requests/?lang=en>`_.
581581
:type transaction: dict
582582
:param validate: If set to false, validation of the transaction
583583
dictionary will be disabled. This validation helps ensure that your
@@ -616,7 +616,7 @@ def score(
616616
:param transaction: A dictionary containing the transaction to be
617617
sent to the minFraud Score web service as specified in the `REST API
618618
documentation
619-
<https://dev.maxmind.com/minfraud/api-documentation/requests?lang=en>`_.
619+
<https://dev.maxmind.com/minfraud/api-documentation/requests/?lang=en>`_.
620620
:type transaction: dict
621621
:param validate: If set to false, validation of the transaction
622622
dictionary will be disabled. This validation helps ensure that your
@@ -652,9 +652,9 @@ def report(
652652
"""Send a transaction report to the Report Transaction endpoint.
653653
654654
:param report: A dictionary containing the transaction report to be sent
655-
to the Report Transations web service as specified in the `REST API`
655+
to the Report Transations web service as specified in the `REST API
656656
documentation
657-
<https://dev.maxmind.com/minfraud/report-transaction/#Request_Body>_.
657+
<https://dev.maxmind.com/minfraud/report-a-transaction/?lang=en>`_.
658658
:type report: dict
659659
:param validate: If set to false, validation of the report dictionary
660660
will be disabled. This validation helps ensure that your request is

0 commit comments

Comments
 (0)