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

Add codespell to pre-commit and bump versions #641

Merged
merged 2 commits into from
May 23, 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
10 changes: 8 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,18 @@ repos:
- id: trailing-whitespace
exclude: \.svg$
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: v0.0.263
rev: v0.0.269
hooks:
- id: ruff
args: [geoviews]
files: geoviews/
- repo: https://github.com/hoxbro/clean_notebook
rev: v0.1.9
rev: v0.1.10
hooks:
- id: clean-notebook
- repo: https://github.com/codespell-project/codespell
rev: v2.2.4
hooks:
- id: codespell
additional_dependencies:
- tomli
2 changes: 1 addition & 1 deletion doc/releases.rst
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ Version 1.9.5

Date: Mar 8, 2022

This is a micro release fixes a regression introdued in the 1.9.4 release.
This is a micro release fixes a regression introduced in the 1.9.4 release.

Bug fixes:

Expand Down
2 changes: 1 addition & 1 deletion examples/user_guide/Geometries.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"These deafult features simply wrap around cartopy Features, therefore we can easily load a custom ``NaturalEarthFeature`` such as graticules at 30 degree intervals: "
"These default features simply wrap around cartopy Features, therefore we can easily load a custom ``NaturalEarthFeature`` such as graticules at 30 degree intervals: "
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion geoviews/element/geo.py
Original file line number Diff line number Diff line change
Expand Up @@ -827,7 +827,7 @@ class Shape(Dataset):
Optional level associated with the set of Contours.""")

vdims = param.List(default=[], doc="""
Shpae optionally accept a value dimension, corresponding
Shape optionally accept a value dimension, corresponding
to the supplied values.""", bounds=(0, None))

def __init__(self, data, kdims=None, vdims=None, **params):
Expand Down
2 changes: 1 addition & 1 deletion geoviews/plotting/bokeh/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ class geo_hex_binning(hex_binning, project_points):
Applies hex binning by computing aggregates on a hexagonal grid.

Should not be user facing as the returned element is not directly
useable.
usable.
"""

def _process(self, element, key=None):
Expand Down
5 changes: 5 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,8 @@ unfixable = [
[tool.ruff.per-file-ignores]
"__init__.py" = ["F403"]
"geoviews/tests/*" = ["RUF001", "RUF002", "RUF003"] # Ambiguous unicode character

[tool.codespell]
ignore-words-list = "lod,nd"
skip = "doc/generate_modules.py,*.json,*.csv"
write-changes = true