Skip to content

Commit

Permalink
DOC/TST: Fixes for flake8 and codespell updates
Browse files Browse the repository at this point in the history
  • Loading branch information
greglucas committed Oct 6, 2023
1 parent e9120e3 commit 578675b
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion lib/cartopy/io/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ def path(self, format_dict):
:meth:`url` to :meth:`target_path`.
Typically, this is the method that most applications will call,
allowing implementors of new Downloaders to specialise
allowing implementers of new Downloaders to specialise
:meth:`acquire_resource`.
Parameters
Expand Down
2 changes: 1 addition & 1 deletion lib/cartopy/mpl/geoaxes.py
Original file line number Diff line number Diff line change
Expand Up @@ -1685,7 +1685,7 @@ def scatter(self, *args, **kwargs):
kwargs['transform'].source_projection.is_geodetic()):
raise ValueError('Cartopy cannot currently do spherical '
'scatter. The source CRS cannot be a '
'geodetic, consider using the cyllindrical form '
'geodetic, consider using the cylindrical form '
'(PlateCarree or RotatedPole).')

result = super().scatter(*args, **kwargs)
Expand Down
2 changes: 1 addition & 1 deletion lib/cartopy/tests/mpl/test_patch.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,6 @@ def test_nested_polygons(self):
# The first square makes the first geometry with the second square as
# its interior. The third square is its own geometry with no interior.
assert len(geoms) == 2
assert all(type(geom) == sgeom.Polygon for geom in geoms)
assert all(isinstance(geom, sgeom.Polygon) for geom in geoms)
assert len(geoms[0].interiors) == 1
assert len(geoms[1].interiors) == 0
2 changes: 1 addition & 1 deletion lib/cartopy/tests/test_polygon.py
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ def test_project_degenerate_poly(self):
target = ccrs.PlateCarree()
# Before fixing, this would cause a segmentation fault.
polygons = target.project_geometry(polygon, source)
assert type(polygons) == sgeom.MultiPolygon
assert isinstance(polygons, sgeom.MultiPolygon)


class TestQuality:
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ cartopy = ["lib/cartopy/tests/mpl/baseline_images/**",
write_to = "lib/cartopy/_version.py"

[tool.codespell]
ignore-words-list = "damon,koordinates,linz,slippy,subtiles,tring"
skip = "./.git,./docs/build,./docs/source/gallery,./docs/source/reference,*.cpp,*.css,*.examples,*.js,*.html,*.ipynb,*.pdf,*.rst.txt"
ignore-words-list = "damon,koordinates,linz,manuel,slippy,subtiles,tring"
skip = "docs/source/copyright.rst,*.cpp,*.css,*.examples,*.js,*.html,*.ipynb,*.pdf,*.rst.txt"

[tool.check-manifest]
ignore = [
Expand Down

0 comments on commit 578675b

Please sign in to comment.