Skip to content

Commit

Permalink
Update pre-commit and fixes (#5889)
Browse files Browse the repository at this point in the history
  • Loading branch information
hoxbro authored Sep 16, 2023
1 parent 3f96806 commit d7bf91f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ repos:
exclude: \.min\.js$
- id: trailing-whitespace
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.0.284
rev: v0.0.290
hooks:
- id: ruff
args: [holoviews]
files: holoviews/
- repo: https://github.com/hoxbro/clean_notebook
rev: v0.1.10
rev: v0.1.11
hooks:
- id: clean-notebook
- repo: https://github.com/codespell-project/codespell
Expand Down
2 changes: 1 addition & 1 deletion holoviews/core/data/grid.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ def init(cls, eltype, data, kdims, vdims):
'match the expected dimensionality indicated '
'by the key dimensions. Expected %d-D array, '
'found %d-D array.' % (vdim, len(expected), len(shape)))
elif any((s!=e and (s+1)!=e) for s, e in zip(shape, valid_shape)):
elif any((e not in (s, s + 1)) for s, e in zip(shape, valid_shape)):
raise error(f'Key dimension values and value array {vdim} '
f'shapes do not match. Expected shape {valid_shape}, '
f'actual shape: {shape}', cls)
Expand Down
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ ignore = [
"E731", # Do not assign a lambda expression, use a def
"E741", # Ambiguous variable name
"F405", # From star imports
"PLC1901", # empty string is falsey
"PLE0604", # Invalid object in `__all__`, must contain only strings
"PLE0605", # Invalid format for `__all__`
"PLR091", # Too many arguments/branches/statements
Expand Down

0 comments on commit d7bf91f

Please sign in to comment.