Skip to content

Commit 5e0ea7f

Browse files
authored
Merge pull request #67 from HiDiHlabs/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
2 parents ebf189d + 949d920 commit 5e0ea7f

3 files changed

Lines changed: 6 additions & 9 deletions

File tree

.pre-commit-config.yaml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,18 +15,16 @@ repos:
1515
- id: no-commit-to-branch
1616
args: [--branch=main]
1717
- repo: https://github.com/astral-sh/ruff-pre-commit
18-
rev: v0.15.9
18+
rev: v0.15.20
1919
hooks:
2020
# Linter
2121
- id: ruff-check
2222
# Formatter
2323
- id: ruff-format
2424
- repo: https://github.com/pre-commit/mirrors-mypy
25-
rev: v1.20.0
25+
rev: v2.1.0
2626
hooks:
2727
- id: mypy
28-
additional_dependencies:
29-
- "numpy"
3028
- repo: https://github.com/codespell-project/codespell
3129
rev: v2.4.2
3230
hooks:

ovrlpy/_kde.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@
1919
_TRUNCATE = 4
2020

2121
Shape1D = tuple[int]
22-
Array1D = np.ndarray[Shape1D, np.dtype]
23-
Array1D_Int = np.ndarray[Shape1D, np.dtype[np.integer]]
22+
Array1D: TypeAlias = np.ndarray[Shape1D, np.dtype]
23+
Array1D_Int: TypeAlias = np.ndarray[Shape1D, np.dtype[np.integer]]
2424

2525
Coordinate: TypeAlias = Array1D | pl.Series
2626

27-
KDE_2D = np.ndarray[tuple[int, int], np.dtype[np.floating]]
28-
KDE_ND = np.ndarray[tuple[int, ...], np.dtype[np.floating]]
27+
KDE_2D: TypeAlias = np.ndarray[tuple[int, int], np.dtype[np.floating]]
28+
KDE_ND: TypeAlias = np.ndarray[tuple[int, ...], np.dtype[np.floating]]
2929

3030

3131
def kde_2d_discrete(

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,4 +74,3 @@ python_version = "3.11"
7474
ignore_missing_imports = true
7575
warn_no_return = false
7676
packages = "ovrlpy"
77-
plugins = "numpy.typing.mypy_plugin"

0 commit comments

Comments
 (0)