Add "doctest" session ...

... to run `xdoctest` against the `velofy` package.

Also, install `xdoctest` with only its "colors" extra
as the notebooks do not contain doctests.
This commit is contained in:
Alexander Hess 2026-11-27 10:45:35 +01:00
commit 32f6540ec3
Signed by: alexander
GPG key ID: B46EDB4DFC26805D

View file

@ -47,7 +47,8 @@ class Location: # noqa:WPS214
Convention is {ZONE} {EASTING} {NORTHING}.
Example:
`<Location: 17T 630084 4833438>'`
>>> Location(43.6532, -79.3832)
<Location: 17T 630378 4834625>
"""
return f'<Location: {self.zone} {self.easting} {self.northing}>' # noqa:WPS221