Skip to content

GeoSampler updates

GeoSampler updates #31

Triggered via pull request September 20, 2024 11:26
Status Failure
Total duration 3m 20s
Artifacts

style.yaml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

12 errors
prettier
Process completed with exit code 1.
Ruff (ANN001): tests/samplers/test_single.py#L150
tests/samplers/test_single.py:150:31: ANN001 Missing type annotation for function argument `tmpdir_factory`
Ruff (F401): torchgeo/samplers/single.py#L7
torchgeo/samplers/single.py:7:8: F401 `random` imported but unused
Ruff (UP035): torchgeo/samplers/single.py#L11
torchgeo/samplers/single.py:11:1: UP035 `typing.List` is deprecated, use `list` instead
Ruff (UP006): torchgeo/samplers/single.py#L99
torchgeo/samplers/single.py:99:36: UP006 Use `list` instead of `List` for type annotation
Ruff (UP006): torchgeo/samplers/single.py#L113
torchgeo/samplers/single.py:113:44: UP006 Use `list` instead of `List` for type annotation
Ruff (ANN001): torchgeo/samplers/single.py#L138
torchgeo/samplers/single.py:138:34: ANN001 Missing type annotation for function argument `self`
Ruff (ANN001): torchgeo/samplers/single.py#L138
torchgeo/samplers/single.py:138:70: ANN001 Missing type annotation for function argument `driver`
Ruff (D415): torchgeo/samplers/single.py#L139
torchgeo/samplers/single.py:139:9: D415 First line should end with a period, question mark, or exclamation point
Ruff (F821): torchgeo/samplers/single.py#L141
torchgeo/samplers/single.py:141:13: F821 Undefined name `chips`
Ruff (F821): torchgeo/samplers/single.py#L143
torchgeo/samplers/single.py:143:13: F821 Undefined name `chips`
mypy
Process completed with exit code 1.