We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9588c2b commit b770fc0Copy full SHA for b770fc0
.github/workflows/python-poetry-ci.yml
@@ -1,6 +1,17 @@
1
name: Linting
2
on:
3
workflow_call:
4
+ inputs:
5
+ extras:
6
+ description: >
7
+ Space-separated list of extras to install when type checking.
8
+ Defaults to no extras.
9
+ # In the future I'd like to change setup-python-poetry to install all extras
10
+ # by default, using e.g. an implementation of
11
+ # https://github.com/python-poetry/poetry/issues/3413
12
+ type: string
13
+ required: false
14
+ default: ""
15
16
17
jobs:
@@ -33,6 +44,9 @@ jobs:
33
44
34
45
- name: Setup Poetry
35
46
uses: matrix-org/setup-python-poetry@v1
47
+ with:
48
+ # We want to make use of type hints in optional dependencies too.
49
+ extras: "${{ inputs.extras }}"
36
50
37
51
- name: Restore/persist mypy's cache
38
52
uses: AustinScola/mypy-cache-github-action@v1
0 commit comments