Skip to content

Commit dff84af

Browse files
ianhimax-sixty
andauthored
Add pep-723 style script to bug report issue template (#10707)
* Add pep-723 style script to bug report issue template * make suggestion rather than requirement * Update .github/ISSUE_TEMPLATE/bugreport.yml Co-authored-by: Maximilian Roos <[email protected]> * use complete * Update .github/ISSUE_TEMPLATE/bugreport.yml Co-authored-by: Maximilian Roos <[email protected]> * Update .github/ISSUE_TEMPLATE/bugreport.yml Co-authored-by: Maximilian Roos <[email protected]> --------- Co-authored-by: Maximilian Roos <[email protected]>
1 parent 5d9aa6e commit dff84af

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

.github/ISSUE_TEMPLATE/bugreport.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,23 @@ body:
3939
- [Minimal Complete Verifiable Examples](https://stackoverflow.com/help/mcve)
4040
- [Craft Minimal Bug Reports](https://matthewrocklin.com/minimal-bug-reports)
4141
42+
Consider listing additional or specific dependencies in [inline script metadata](https://packaging.python.org/en/latest/specifications/inline-script-metadata/#example)
43+
so that calling `uv run issue.py` shows the issue when copied into `issue.py`. (not strictly required)
44+
value: |
45+
```python
46+
# /// script
47+
# requires-python = ">=3.11"
48+
# dependencies = [
49+
# "xarray[complete]@git+https://github.com/pydata/xarray.git@main,
50+
# ]
51+
# ///
52+
#
53+
# This script automatically imports the development branch of xarray to check for issues
54+
55+
import xarray as xr
56+
xr.show_versions()
57+
# your reproducer code ...
58+
```
4259
options:
4360
- label: Minimal example — the example is as focused as reasonably possible to demonstrate the underlying issue in xarray.
4461
- label: Complete example — the example is self-contained, including all data and the text of any traceback.

0 commit comments

Comments
 (0)