X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/62bfbd6a63dcac2f6f31eb014f69397c9eb967d2..73c2d5514ce604141abe176b1f3e5cd35ff51d56:/.github/ISSUE_TEMPLATE/bug_report.md diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md index 3b59906..48aa929 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -1,36 +1,64 @@ --- name: Bug report -about: Create a report to help us improve +about: Create a report to help us improve Black's quality title: "" -labels: bug +labels: "T: bug" assignees: "" --- -**Describe the bug** A clear and concise description of what the bug is. + -1. Take this file '...' -1. Run _Black_ on it with these arguments '....' -1. See error +**Describe the bug** -**Expected behavior** A clear and concise description of what you expected to happen. + -**Environment (please complete the following information):** +**To Reproduce** -- Version: \[e.g. master\] -- OS and Python version: \[e.g. Linux/Python 3.7.4rc1\] + -**Does this bug also happen on master?** To answer this, you have two options: +For example, take this code: -1. Use the online formatter at , which will - use the latest master branch. -1. Or run _Black_ on your machine: - - create a new virtualenv (make sure it's the same Python version); - - clone this repository; - - run `pip install -e .[d,python2]`; - - run `pip install -r test_requirements.txt` - - make sure it's sane by running `python -m unittest`; and - - run `black` like you did last time. +```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** + + + +- Black's version: +- OS and Python version: + +**Additional context** -**Additional context** Add any other context about the problem here. +