Skip to content

Commit 1fa1164

Browse files
authored
DOC: Remove 'noqa: E501' from docstrings (#1492)
1 parent 38a7f8a commit 1fa1164

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

pyproj/_crs.pyx

+2-2
Original file line numberDiff line numberDiff line change
@@ -2699,7 +2699,7 @@ cdef class _CRS(Base):
26992699
.. warning:: You will likely lose important projection
27002700
information when converting to a PROJ string from
27012701
another format. See:
2702-
https://proj.org/faq.html#what-is-the-best-format-for-describing-coordinate-reference-systems # noqa: E501
2702+
https://proj.org/faq.html#what-is-the-best-format-for-describing-coordinate-reference-systems
27032703
27042704
Parameters
27052705
----------
@@ -2709,7 +2709,7 @@ cdef class _CRS(Base):
27092709
Returns
27102710
-------
27112711
str
2712-
"""
2712+
""" # noqa: E501
27132713
warnings.warn(
27142714
"You will likely lose important projection information when "
27152715
"converting to a PROJ string from another format. See: "

pyproj/crs/crs.py

+7-7
Original file line numberDiff line numberDiff line change
@@ -172,15 +172,15 @@ class CRS:
172172
173173
The functionality is based on other fantastic projects:
174174
175-
* `rasterio <https://github.com/mapbox/rasterio/blob/c13f0943b95c0eaa36ff3f620bd91107aa67b381/rasterio/_crs.pyx>`_ # noqa: E501
176-
* `opendatacube <https://github.com/opendatacube/datacube-core/blob/83bae20d2a2469a6417097168fd4ede37fd2abe5/datacube/utils/geometry/_base.py>`_ # noqa: E501
175+
* `rasterio <https://github.com/mapbox/rasterio/blob/c13f0943b95c0eaa36ff3f620bd91107aa67b381/rasterio/_crs.pyx>`_
176+
* `opendatacube <https://github.com/opendatacube/datacube-core/blob/83bae20d2a2469a6417097168fd4ede37fd2abe5/datacube/utils/geometry/_base.py>`_
177177
178178
Attributes
179179
----------
180180
srs: str
181181
The string form of the user input used to create the CRS.
182182
183-
"""
183+
""" # noqa: E501
184184

185185
def __init__(self, projparams: Any | None = None, **kwargs) -> None:
186186
"""
@@ -579,14 +579,14 @@ def to_dict(self) -> dict:
579579
580580
.. warning:: You will likely lose important projection
581581
information when converting to a PROJ string from
582-
another format. See: https://proj.org/faq.html#what-is-the-best-format-for-describing-coordinate-reference-systems # noqa: E501
582+
another format. See: https://proj.org/faq.html#what-is-the-best-format-for-describing-coordinate-reference-systems
583583
584584
Returns
585585
-------
586586
dict:
587587
PROJ params in dict format.
588588
589-
"""
589+
""" # noqa: E501
590590

591591
proj_string = self.to_proj4()
592592
if proj_string is None:
@@ -1280,7 +1280,7 @@ def to_proj4(self, version: ProjVersion | int = ProjVersion.PROJ_5) -> str:
12801280
.. warning:: You will likely lose important projection
12811281
information when converting to a PROJ string from
12821282
another format. See:
1283-
https://proj.org/faq.html#what-is-the-best-format-for-describing-coordinate-reference-systems # noqa: E501
1283+
https://proj.org/faq.html#what-is-the-best-format-for-describing-coordinate-reference-systems
12841284
12851285
Parameters
12861286
----------
@@ -1291,7 +1291,7 @@ def to_proj4(self, version: ProjVersion | int = ProjVersion.PROJ_5) -> str:
12911291
Returns
12921292
-------
12931293
str
1294-
"""
1294+
""" # noqa: E501
12951295
proj = self._crs.to_proj4(version=version)
12961296
if proj is None:
12971297
raise CRSError("CRS cannot be converted to a PROJ string.")

0 commit comments

Comments
 (0)