summaryrefslogtreecommitdiff
path: root/pylint/lint
diff options
context:
space:
mode:
authorPierre Sassoulas <pierre.sassoulas@gmail.com>2023-03-29 10:59:39 +0200
committerPierre Sassoulas <pierre.sassoulas@gmail.com>2023-03-29 11:38:51 +0200
commit155298f87f230e249875b14481440822c82609e5 (patch)
tree78398ff5718f9674633f63a9ea6ecb985bdf6509 /pylint/lint
parent5e94497239058514d4e186edb4eed9b670af9ddc (diff)
downloadpylint-git-155298f87f230e249875b14481440822c82609e5.tar.gz
[crash template] Link to blank issue so it's possible to copy paste
Diffstat (limited to 'pylint/lint')
-rw-r--r--pylint/lint/utils.py32
1 files changed, 28 insertions, 4 deletions
diff --git a/pylint/lint/utils.py b/pylint/lint/utils.py
index 8df7a2ef8..93ab8dfab 100644
--- a/pylint/lint/utils.py
+++ b/pylint/lint/utils.py
@@ -5,13 +5,14 @@
from __future__ import annotations
import contextlib
+import platform
import sys
import traceback
from collections.abc import Iterator, Sequence
from datetime import datetime
from pathlib import Path
-from pylint.constants import PYLINT_HOME
+from pylint.constants import PYLINT_HOME, full_version
def prepare_crash_report(ex: Exception, filepath: str, crash_file_path: str) -> Path:
@@ -26,8 +27,9 @@ def prepare_crash_report(ex: Exception, filepath: str, crash_file_path: str) ->
First, please verify that the bug is not already filled:
https://github.com/PyCQA/pylint/issues/
-Then create a new crash issue:
-https://github.com/PyCQA/pylint/issues/new?assignees=&labels=crash%2Cneeds+triage&template=BUG-REPORT.yml
+Then create a new issue:
+https://github.com/PyCQA/pylint/issues/new?labels=Crash 💥%2CNeeds triage 📥
+
"""
template += f"""
@@ -63,10 +65,32 @@ pylint a.py
```python
"""
template += traceback.format_exc()
- template += """
+ template += f"""
```
+
</details>
+
+### Expected behavior
+
+No crash.
+
+### Pylint version
+
+```shell
+{full_version}
+```
+
+### OS / Environment
+
+{sys.platform} ({platform.system()})
+
+### Additional dependencies
+
+<!--
+Please remove this part if you're not using any of
+your dependencies in the example.
+ -->
"""
try:
with open(issue_template_path, "a", encoding="utf8") as f: