File tree 3 files changed +10
-12
lines changed
src/pytorch_lightning/trainer/connectors
3 files changed +10
-12
lines changed Original file line number Diff line number Diff line change 18
18
19
19
- uses : actions/setup-python@v4
20
20
with :
21
- python-version : 3.9
21
+ python-version : ' 3.10.6 '
22
22
23
23
# Note: This uses an internal pip API and may not always work
24
24
# https://github.com/actions/cache/blob/master/examples.md#multiple-oss-in-a-workflow
35
35
pip install torch==1.12 --find-links https://download.pytorch.org/whl/cpu/torch_stable.html
36
36
python ./requirements/pytorch/adjust-versions.py requirements/pytorch/extra.txt
37
37
# todo: adjust requirements for both code-bases
38
- pip install -r requirements/pytorch/devel.txt --find-links https://download.pytorch.org/whl/cpu/torch_stable.html
38
+ pip install -r requirements/pytorch/devel.txt -r requirements/app/devel.txt -r requirements/lite/devel.txt - -find-links https://download.pytorch.org/whl/cpu/torch_stable.html
39
39
pip list
40
40
41
41
- name : Check typing
42
- run : mypy
42
+ run : |
43
+ mkdir .mypy_cache
44
+ mypy
Original file line number Diff line number Diff line change @@ -28,11 +28,11 @@ exclude = '(_notebooks/.*)'
28
28
files = [
29
29
" src/pytorch_lightning" ,
30
30
" src/lightning_lite" ,
31
- " src/lightning_app/ " ,
31
+ " src/lightning_app" ,
32
32
]
33
33
exclude = [
34
- " src/lightning_app/cli/component-template/ " ,
35
- " src/lightning_app/cli/pl-app-template/ " ,
34
+ " src/lightning_app/cli/component-template" ,
35
+ " src/lightning_app/cli/pl-app-template" ,
36
36
" src/lightning_app/cli/react-ui-template" ,
37
37
" src/lightning_app/cli/app-template" ,
38
38
]
@@ -58,10 +58,6 @@ warn_no_return = "False"
58
58
module = [
59
59
" lightning_app.api.http_methods" ,
60
60
" lightning_app.api.request_types" ,
61
- " lightning_app.cli.app-template.app" ,
62
- " lightning_app.cli.app-template.placeholdername.components.component_a.component_a" ,
63
- " lightning_app.cli.app-template.placeholdername.components.component_b.component_a" ,
64
- " lightning_app.cli.app-template.tests.test_placeholdername_app" ,
65
61
" lightning_app.cli.commands.app_commands" ,
66
62
" lightning_app.cli.commands.connection" ,
67
63
" lightning_app.cli.react-ui-template.example_app" ,
Original file line number Diff line number Diff line change @@ -271,9 +271,9 @@ def _configure_external_callbacks() -> List[Callback]:
271
271
from importlib .metadata import entry_points
272
272
273
273
if _PYTHON_GREATER_EQUAL_3_10_0 :
274
- factories = entry_points (group = group ) # type: ignore[call-arg]
274
+ factories = entry_points (group = group )
275
275
else :
276
- factories = entry_points ().get (group , {}) # type: ignore[assignment ]
276
+ factories = entry_points ().get (group , {}) # type: ignore[arg-type ]
277
277
else :
278
278
from pkg_resources import iter_entry_points
279
279
You can’t perform that action at this time.
0 commit comments