Skip to content

Add hf_converter keyword to SpectrumDataset._to_tensor and AnnotatedSpectrumDataset._to_tensor for pylance compatability. #301

Add hf_converter keyword to SpectrumDataset._to_tensor and AnnotatedSpectrumDataset._to_tensor for pylance compatability.

Add hf_converter keyword to SpectrumDataset._to_tensor and AnnotatedSpectrumDataset._to_tensor for pylance compatability. #301

Re-run triggered October 18, 2024 06:55
Status Failure
Total duration 24s
Artifacts

lint.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

4 errors and 1 warning
Ruff (UP007): depthcharge/data/spectrum_datasets.py#L242
depthcharge/data/spectrum_datasets.py:242:23: UP007 Use `X | Y` for type annotations
Ruff (UP007): depthcharge/data/spectrum_datasets.py#L357
depthcharge/data/spectrum_datasets.py:357:24: UP007 Use `X | Y` for type annotations
Ruff (W293): depthcharge/data/spectrum_datasets.py#L367
depthcharge/data/spectrum_datasets.py:367:1: W293 Blank line contains whitespace
lint
Process completed with exit code 1.
lint
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3, actions/setup-python@v4. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/