Skip to content

cli: report a missing optional extra as an error, not a traceback - #54

Merged
profsergiocosta merged 1 commit into
mainfrom
fix/cli-missing-extra
Oct 1, 2026
Merged

profsergiocosta merged 1 commit into
mainfrom
fix/cli-missing-extra

Conversation

@profsergiocosta

Copy link
Copy Markdown
Member

disscube run -o cube.nc without disscube[netcdf] now prints "error: export_netcdf() needs a netCDF backend: pip install 'disscube[netcdf]'" and exits 2, like any other pipeline error.

Description

Related Issue

Closes #

Changes Made

  • Core implementation / algorithmic changes
  • Added or updated unit tests
  • Updated documentation / docstrings / examples

Contributor Checklist

  • The code runs locally without errors
  • All unit tests pass locally (pytest)
  • Static analysis and formatting pass (ruff check ., mypy disscube)
  • Docstrings follow the project standard (inputs, outputs, exceptions)

`disscube run -o cube.nc` without disscube[netcdf] now prints
"error: export_netcdf() needs a netCDF backend: pip install 'disscube[netcdf]'"
and exits 2, like any other pipeline error.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@profsergiocosta
profsergiocosta merged commit 3b3ff3a into main Oct 1, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant