Skip to content

Commit 22099dc

Browse files
committed
chore(governance): update static typing to a form
1 parent 3ef4bad commit 22099dc

File tree

3 files changed

+64
-47
lines changed

3 files changed

+64
-47
lines changed

.github/ISSUE_TEMPLATE/bug_report.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ body:
2727
id: code_snippet
2828
attributes:
2929
label: Code snippet
30-
description: Please share a code snippet to help us reproduce the issue.
30+
description: Please share a code snippet to help us reproduce the issue
3131
render: python
3232
validations:
3333
required: true
Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
name: Static typing mismatch report
2+
description: Report a static type mismatch caught by a static type checker
3+
title: "Static typing: TITLE"
4+
labels: ["static_typing", "triage"]
5+
body:
6+
- type: markdown
7+
attributes:
8+
value: |
9+
Thank you for submitting a static typing report. Please add as much information as possible to help us reproduce.
10+
11+
Our preferred static type checker is [Mypy](https://mypy.readthedocs.io/en/stable/) using the following [configuration](https://github.com/awslabs/aws-lambda-powertools-python/blob/develop/mypy.ini).
12+
- type: dropdown
13+
id: tool
14+
attributes:
15+
label: Static type checker used
16+
options:
17+
- label: "mypy (project's standard)"
18+
- label: "pyright/pylance"
19+
- label: "pyre"
20+
- label: "pytype"
21+
validations:
22+
required: true
23+
- type: dropdown
24+
id: runtime
25+
attributes:
26+
label: AWS Lambda function runtime
27+
options:
28+
- label: "3.6"
29+
- label: "3.7"
30+
- label: "3.8"
31+
- label: "3.9"
32+
validations:
33+
required: true
34+
- type: input
35+
id: version
36+
attributes:
37+
label: AWS Lambda Powertools for Python version
38+
placeholder: "latest, 1.25.6"
39+
value: latest
40+
validations:
41+
required: true
42+
- type: textarea
43+
id: output
44+
attributes:
45+
label: Static type checker info
46+
description: Please share your static type checker's output, its configuration, and how you typically run it
47+
validations:
48+
required: true
49+
- type: textarea
50+
id: code_snippet
51+
attributes:
52+
label: Code snippet
53+
description: Please share a code snippet to help us reproduce the issue
54+
render: python
55+
validations:
56+
required: true
57+
- type: textarea
58+
id: solution
59+
attributes:
60+
label: Possible Solution
61+
description: If known, please suggest a potential resolution
62+
validations:
63+
required: false

.github/ISSUE_TEMPLATE/static_typing_report.md

Lines changed: 0 additions & 46 deletions
This file was deleted.

0 commit comments

Comments
 (0)