File tree 1 file changed +15
-0
lines changed
1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change 1
1
name : Linting
2
2
on :
3
3
workflow_call :
4
+ inputs :
5
+ typechecking-extras :
6
+ description : >
7
+ Space-separated list of package extras to install when type checking.
8
+ (I.e. the entries in `pyproject.toml`'s `[tool.poetry.extras]` section.)
9
+ Defaults to no extras.
10
+ # In the future I'd like to change setup-python-poetry to install all extras
11
+ # by default, using e.g. an implementation of
12
+ # https://github.com/python-poetry/poetry/issues/3413
13
+ type : string
14
+ required : false
15
+ default : " "
4
16
5
17
6
18
jobs :
33
45
34
46
- name : Setup Poetry
35
47
uses : matrix-org/setup-python-poetry@v1
48
+ with :
49
+ # We want to make use of type hints in optional dependencies too.
50
+ extras : " ${{ inputs.typechecking-extras }}"
36
51
37
52
- name : Restore/persist mypy's cache
38
53
uses : AustinScola/mypy-cache-github-action@v1
You can’t perform that action at this time.
0 commit comments