File tree Expand file tree Collapse file tree 10 files changed +20
-16
lines changed Expand file tree Collapse file tree 10 files changed +20
-16
lines changed Original file line number Diff line number Diff line change 5858 - uses : actions/checkout@v5
5959
6060 - name : Install uv and set Python version
61- uses : astral-sh/setup-uv@v6
61+ uses : astral-sh/setup-uv@v7
6262 with :
6363 python-version : " 3.9"
6464 # TODO: Avoid activating environment like this
Original file line number Diff line number Diff line change 7171 - uses : actions/checkout@v5
7272
7373 - name : Install uv and set Python version
74- uses : astral-sh/setup-uv@v6
74+ uses : astral-sh/setup-uv@v7
7575 with :
7676 python-version : ${{ matrix.config.python-version || '3.9' }}
7777 # TODO: Avoid activating environment like this
Original file line number Diff line number Diff line change 7676 - uses : actions/checkout@v5
7777
7878 - name : Install uv and set Python version
79- uses : astral-sh/setup-uv@v6
79+ uses : astral-sh/setup-uv@v7
8080 with :
8181 python-version : ${{ matrix.config.python-version || '3.9' }}
8282 # TODO: Avoid activating environment like this
Original file line number Diff line number Diff line change 3131 - uses : actions/checkout@v5
3232
3333 - name : Install uv and set Python version
34- uses : astral-sh/setup-uv@v6
34+ uses : astral-sh/setup-uv@v7
3535 with :
3636 python-version : " 3.11"
3737 # TODO: Avoid activating environment like this
Original file line number Diff line number Diff line change 7373 lfs : ${{ matrix.pkg-name == 'pytorch' }}
7474
7575 - name : Install uv and set Python version
76- uses : astral-sh/setup-uv@v6
76+ uses : astral-sh/setup-uv@v7
7777 with :
7878 python-version : " 3.10"
7979 # TODO: Avoid activating environment like this
Original file line number Diff line number Diff line change 2323
2424repos :
2525 - repo : https://github.com/pre-commit/pre-commit-hooks
26- rev : v5 .0.0
26+ rev : v6 .0.0
2727 hooks :
2828 - id : end-of-file-fixer
2929 - id : trailing-whitespace
7070 - id : sphinx-lint
7171
7272 - repo : https://github.com/astral-sh/ruff-pre-commit
73- rev : v0.12.2
73+ rev : v0.13.3
7474 hooks :
7575 # try to fix what is possible
7676 - id : ruff
9595 README.md
9696 )$
9797
98- - repo : https://github.com/pre-commit/mirrors -prettier
99- rev : v3.1.0
98+ - repo : https://github.com/JoC0de/ pre-commit-prettier
99+ rev : v3.6.2
100100 hooks :
101101 - id : prettier
102102 # https://prettier.io/docs/en/options.html#print-width
Original file line number Diff line number Diff line change 1- coverage ==7.10.6
1+ coverage ==7.10.7
22numpy >=1.21.0, <1.27.0
33pytest ==8.4.2
44pytest-cov ==6.3.0
55pytest-timeout ==2.4.0
6- pytest-rerunfailures ==16.0.1
6+ pytest-rerunfailures ==16.0.1; python_version < "3.10"
7+ pytest-rerunfailures ==16.1; python_version >= "3.10"
78pytest-random-order ==1.2.0
89click ==8.1.8; python_version < "3.11"
910click ==8.3.0; python_version > "3.10"
Original file line number Diff line number Diff line change 1- coverage ==7.10.6
1+ coverage ==7.10.7
22pytest ==8.4.2
33pytest-cov ==6.3.0
44pytest-timeout ==2.4.0
5- pytest-rerunfailures ==16.0.1
5+ pytest-rerunfailures ==16.0.1; python_version < "3.10"
6+ pytest-rerunfailures ==16.1; python_version >= "3.10"
67pytest-random-order ==1.2.0
78
89# needed in tests
Original file line number Diff line number Diff line change 33
44def test_precision_plugin_renamed_imports ():
55 # base class
6+ from lightning .pytorch .plugins .precision .precision_plugin import PrecisionPlugin as PrecisionPlugin0
7+
68 from lightning .pytorch .plugins import PrecisionPlugin as PrecisionPlugin2
79 from lightning .pytorch .plugins .precision import PrecisionPlugin as PrecisionPlugin1
810 from lightning .pytorch .plugins .precision .precision import Precision
9- from lightning .pytorch .plugins .precision .precision_plugin import PrecisionPlugin as PrecisionPlugin0
1011
1112 assert issubclass (PrecisionPlugin0 , Precision )
1213 assert issubclass (PrecisionPlugin1 , Precision )
Original file line number Diff line number Diff line change @@ -42,11 +42,12 @@ def test_is_overridden():
4242 reason = "This test is ONLY relevant for the UNIFIED package" ,
4343)
4444def test_mixed_imports_unified ():
45- from lightning .pytorch .utilities .compile import _maybe_unwrap_optimized as new_unwrap
46- from lightning .pytorch .utilities .model_helpers import is_overridden as new_is_overridden
4745 from pytorch_lightning .callbacks import EarlyStopping as OldEarlyStopping
4846 from pytorch_lightning .demos .boring_classes import BoringModel as OldBoringModel
4947
48+ from lightning .pytorch .utilities .compile import _maybe_unwrap_optimized as new_unwrap
49+ from lightning .pytorch .utilities .model_helpers import is_overridden as new_is_overridden
50+
5051 model = OldBoringModel ()
5152 with pytest .raises (TypeError , match = r"`pytorch_lightning` object \(BoringModel\) to a `lightning.pytorch`" ):
5253 new_unwrap (model )
You can’t perform that action at this time.
0 commit comments