Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions .github/ISSUE_TEMPLATE/bugreport.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,23 @@ body:
- [Minimal Complete Verifiable Examples](https://stackoverflow.com/help/mcve)
- [Craft Minimal Bug Reports](https://matthewrocklin.com/minimal-bug-reports)

Please list dependencies in [inline script metadata](https://packaging.python.org/en/latest/specifications/inline-script-metadata/#example).
When put in a file named `issue.py` calling `uv run issue.py` should show the issue.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would make this a little weaker, maybe "Consider listing" instead of "Please list". Not everyone has uv installed, e.g., if they are running Xarray from a managed Python environment like Google Colab.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've updated that language. and added explicit permission to delete teh suggesiton in the box. For reasons in the main thread I think it's important to leave it as a copypastable rather than the suggestion (grayed out) text.

value: |
```python
# /// script
# requires-python = ">=3.11"
# dependencies = [
# "xarray@git+https://github.com/pydata/xarray.git@main",
# ]
# ///
#
# This script automatically imports the development branch of xarray to check for issues

import xarray as xr
xr.show_versions()
# your reproducer code ...
```
options:
- label: Minimal example — the example is as focused as reasonably possible to demonstrate the underlying issue in xarray.
- label: Complete example — the example is self-contained, including all data and the text of any traceback.
Expand Down
Loading