File tree Expand file tree Collapse file tree 3 files changed +23
-28
lines changed Expand file tree Collapse file tree 3 files changed +23
-28
lines changed Original file line number Diff line number Diff line change 44
55### Added
66
7+ - Typing support. [ #698 ] ( https://github.com/NLeSC/python-template/pull/698 )
8+
79### Changed
810
911### Removed
Original file line number Diff line number Diff line change @@ -55,10 +55,27 @@ SelectGitHubActions:
5555 value : AddLinkCheck_flag
5656 # validator: "{% if something != 'AnotherThing' %}BlaBla{% endif %}"
5757
58- ---
59- # typing features
60- !include copier/questions/features_typing.yml
61- ---
58+ AddTyping :
59+ type : bool
60+ default : " {{ 'AddTyping_flag' in SelectCodeQualityFeatures }}"
61+ when : false
62+
63+ SelectTypeChecker :
64+ when : " {{ template_profile != 'minimum' and AddTyping }}"
65+ type : str
66+ default : pyright
67+ help : Select a type checker
68+ choices :
69+ Mypy :
70+ value : mypy
71+ Pyright :
72+ value : pyright
73+ # TODO add pyrefly https://pyrefly.org/
74+ # TODO add ty https://github.com/astral-sh/ty
75+
76+ # TODO add runtime type checking (using pydantic or typeguard)
77+
78+ # TODO ask how strict to typecheck
6279
6380# computed features
6481AddLocalTests :
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments