From caef8af988d12e3039a15c9ab96e4f8d72825e12 Mon Sep 17 00:00:00 2001 From: Fabian Joswig Date: Sat, 11 Mar 2023 21:30:14 +0000 Subject: [PATCH 1/2] build: bug report issue template added. --- .github/ISSUE_TEMPLATE/bug-report.yml | 46 +++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 .github/ISSUE_TEMPLATE/bug-report.yml diff --git a/.github/ISSUE_TEMPLATE/bug-report.yml b/.github/ISSUE_TEMPLATE/bug-report.yml new file mode 100644 index 00000000..355d9e4e --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug-report.yml @@ -0,0 +1,46 @@ +name: Bug report +description: Report a bug. +title: "BUG:" +labels: [bug] + +body: +- type: markdown + attributes: + value: > + Thank you for taking the time to file a bug report. + +- type: textarea + attributes: + label: "Describe the issue:" + validations: + required: true + +- type: textarea + attributes: + label: "Code example:" + description: > + A short, self-contained code example that reproduces the problem. + placeholder: | + import pyerrors as pe + << your code here >> + render: python + validations: + required: true + +- type: textarea + attributes: + label: "Error message:" + description: > + Please include full error message, if any. + placeholder: | + << Full traceback starting from `Traceback: ...` >> + render: shell + +- type: textarea + attributes: + label: "Runtime information:" + description: > + Output of `pe.print_config()` (available from pyerrors 2.7). + For earlier versions please provide the python and pyerrors version. + validations: + required: true From bafa6ce38d29c5103d08de3a34b0dc1ee683b71c Mon Sep 17 00:00:00 2001 From: Fabian Joswig Date: Sat, 11 Mar 2023 21:31:21 +0000 Subject: [PATCH 2/2] feat: system added to print_config. --- pyerrors/misc.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pyerrors/misc.py b/pyerrors/misc.py index 07fc8fe1..d71a2bb5 100644 --- a/pyerrors/misc.py +++ b/pyerrors/misc.py @@ -11,7 +11,8 @@ from .version import __version__ def print_config(): """Print information about version of python, pyerrors and dependencies.""" - config = {"python": platform.python_version(), + config = {"system": platform.system(), + "python": platform.python_version(), "pyerrors": __version__, "numpy": np.__version__, "scipy": scipy.__version__,