Skip to content
Draft
Changes from all commits
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
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,31 @@ body:
validations:
required: true

- type: textarea
id: code
attributes:
label: Minimal code sample
description: |
Reproducible code sample. Must list dependencies in [inline script metadata][]. When put in a file named `issue.py` using [uv run][] i.e., `uv run issue.py`, should show the issue.

[uv run]: https://docs.astral.sh/uv/guides/scripts/#running-a-script-with-dependencies
[inline script metadata]: https://packaging.python.org/en/latest/specifications/inline-script-metadata/#example
render: python
value: |
```python
# /// script
# requires-python = ">=3.12"
# dependencies = [
# "{{cookiecutter.package_name}}@git+https://github.com/scverse/{{cookiecutter.project_name}}.git@main",
# ]
# ///
#
# This script automatically imports the development branch of {{cookiecutter.package_name}} to check for issues

import {{cookiecutter.package_name}}
# your reproducer code
```

- type: textarea
id: versions
attributes:
Expand Down