Skip to content

Commit

Permalink
Merge pull request #2255 from SciTools/pre-commit-ci-update-config
Browse files Browse the repository at this point in the history
[pre-commit.ci] pre-commit autoupdate
  • Loading branch information
QuLogic authored Oct 10, 2023
2 parents e53d20b + 578675b commit baf251f
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
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 @@ -1687,7 +1687,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 baf251f

Please sign in to comment.