Skip to content

Commit

Permalink
Ignore lodash vulnerability
Browse files Browse the repository at this point in the history
  • Loading branch information
druzsan committed Feb 5, 2024
1 parent 67991b3 commit 8d8ca88
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
7 changes: 7 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -216,5 +216,12 @@
".jsx",
".tsx"
]
},
"pnpm": {
"auditConfig": {
"ignoreCves": [
"CVE-2020-8203"
]
}
}
}
4 changes: 3 additions & 1 deletion tests/integration/dataset/test_embedding_column.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
from typing import Tuple
import numpy as np
import pytest

from renumics import spotlight
from renumics.spotlight import dtypes
from renumics.spotlight.dataset.exceptions import InvalidDTypeError, InvalidShapeError
from renumics.spotlight.dataset.typing import EmbeddingColumnInputType


@pytest.mark.parametrize("length", [1, 2, 8])
Expand All @@ -14,7 +16,7 @@ def test_default(empty_dataset: spotlight.Dataset, length: int) -> None:
empty_dataset.append_embedding_column("embedding")
assert empty_dataset.get_dtype("embedding") == dtypes.embedding_dtype

valid_values = (
valid_values: Tuple[EmbeddingColumnInputType] = (
[0] * length,
range(length),
tuple(range(length)),
Expand Down
4 changes: 2 additions & 2 deletions tests/integration/dataset/test_fancy_indexing.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"""

import datetime
from typing import Any, List
from typing import Any, List, cast

import numpy as np
import pytest
Expand Down Expand Up @@ -300,7 +300,7 @@ def test_setitem(fancy_indexing_dataset: Dataset) -> None:
)
target = np.array(fancy_indexing_dataset[column_name])
target[indices] = values
fancy_indexing_dataset[column_name, indices] = values
fancy_indexing_dataset[column_name, indices] = cast(np.ndarray, values)
last_edited_at = last_edited_at_column[last_edited_at_indices]
if len(last_edited_at_indices) > 0:
timestamp_ = _assert_unique_datetime(
Expand Down

0 comments on commit 8d8ca88

Please sign in to comment.