Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pre-commit.ci] pre-commit autoupdate #2255

Merged
merged 2 commits into from
Oct 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ repos:
# Trims trailing whitespace
- id: trailing-whitespace
- repo: https://github.com/pycqa/flake8
rev: "6.0.0"
rev: "6.1.0"
hooks:
- id: flake8
- repo: https://github.com/codespell-project/codespell
rev: "v2.2.5"
rev: "v2.2.6"
hooks:
- id: codespell
types_or: [python, markdown, rst]
Expand Down
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
Loading