From fac498bf31af509e0f62bf61459014c9a4e094a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felix=20Hild=C3=A9n?= Date: Sun, 31 Oct 2021 01:01:40 +0300 Subject: [PATCH] Update bug template (#2538) --- .github/ISSUE_TEMPLATE/bug_report.md | 59 ++++++++++++++++++---------- 1 file changed, 38 insertions(+), 21 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md index e8d232c..cb64cf9 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -6,42 +6,59 @@ labels: "T: bug" assignees: "" --- + + **Describe the bug** **To Reproduce** - -For example: -1. Take this file '...' -1. Run _Black_ on it with these arguments '...' -1. See error --> +For example, take this code: + +```python +this = "code" +``` + +And run it with these arguments: + +```sh +$ black file.py --target-version py39 +``` + +The resulting error is: + +> cannot format file.py: INTERNAL ERROR: ... **Expected behavior** -**Environment (please complete the following information):** +**Environment** -- Version: + + +- Black's version: - OS and Python version: -**Does this bug also happen on main?** - - - **Additional context**