Skip to content

Commit 8866c1b

Browse files
committed
feat: update pre-commit
1 parent dc72be8 commit 8866c1b

File tree

3 files changed

+10
-7
lines changed

3 files changed

+10
-7
lines changed

.pre-commit-config.yaml

+5-5
Original file line numberDiff line numberDiff line change
@@ -3,26 +3,26 @@
33

44
repos:
55
- repo: https://github.com/charliermarsh/ruff-pre-commit
6-
rev: v0.0.265
6+
rev: v0.8.4
77
hooks:
88
- id: ruff
99
args: [--fix, --exit-non-zero-on-fix]
1010
- repo: https://github.com/psf/black
11-
rev: 23.3.0
11+
rev: 24.10.0
1212
hooks:
1313
- id: black
1414
- repo: https://github.com/codespell-project/codespell
15-
rev: v2.2.4
15+
rev: v2.3.0
1616
hooks:
1717
- id: codespell
1818
args: [--ignore-words=.codespellignore]
1919
types_or: [jupyter, markdown, python, shell]
2020
- repo: https://github.com/PyCQA/doc8
21-
rev: v1.1.1
21+
rev: v1.1.2
2222
hooks:
2323
- id: doc8
2424
- repo: https://github.com/pre-commit/mirrors-mypy
25-
rev: v1.3.0
25+
rev: v1.14.0
2626
hooks:
2727
- id: mypy
2828
# TODO lint test and scripts too

src/stactools/core/add_raster.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,10 @@ def _read_bands(href: str, statistics: bool, histogram: bool) -> List[RasterBand
6969
data, range=(minimum, maximum), bins=BINS
7070
)
7171
band.histogram = Histogram.create(
72-
BINS, minimum, maximum, hist_data.tolist()
72+
BINS,
73+
minimum,
74+
maximum,
75+
hist_data.tolist(), # type: ignore
7376
)
7477
bands.append(band)
7578
return bands

src/stactools/core/utils/raster_footprint.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ def data_mask(self) -> npt.NDArray[np.uint8]:
292292
mask[~np.isnan(self.data_array)] = 1
293293
else:
294294
mask[self.data_array != self.no_data] = 1
295-
mask = np.sum(mask, axis=0, dtype=np.uint8)
295+
mask = np.sum(mask, axis=0, dtype=np.uint8) # type: ignore
296296
mask[mask > 0] = 1
297297
else:
298298
mask = np.full(shape, 1, dtype=np.uint8)

0 commit comments

Comments
 (0)