Skip to content

Commit b768149

Browse files
authored
Merge branch 'master' into fix/init_parsing
2 parents 92be78c + 4cd2336 commit b768149

File tree

10 files changed

+20
-16
lines changed

10 files changed

+20
-16
lines changed

.github/workflows/_legacy-checkpoints.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ jobs:
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

.github/workflows/ci-tests-fabric.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ jobs:
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

.github/workflows/ci-tests-pytorch.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ jobs:
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

.github/workflows/code-checks.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
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

.github/workflows/docs-build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ jobs:
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

.pre-commit-config.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ ci:
2323

2424
repos:
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
@@ -70,7 +70,7 @@ repos:
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
@@ -95,8 +95,8 @@ repos:
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

requirements/fabric/test.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1-
coverage ==7.10.6
1+
coverage ==7.10.7
22
numpy >=1.21.0, <1.27.0
33
pytest ==8.4.2
44
pytest-cov ==6.3.0
55
pytest-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"
78
pytest-random-order ==1.2.0
89
click ==8.1.8; python_version < "3.11"
910
click ==8.3.0; python_version > "3.10"

requirements/pytorch/test.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1-
coverage ==7.10.6
1+
coverage ==7.10.7
22
pytest ==8.4.2
33
pytest-cov ==6.3.0
44
pytest-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"
67
pytest-random-order ==1.2.0
78

89
# needed in tests

tests/tests_pytorch/graveyard/test_precision.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,11 @@
33

44
def 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)

tests/tests_pytorch/utilities/test_model_helpers.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,12 @@ def test_is_overridden():
4242
reason="This test is ONLY relevant for the UNIFIED package",
4343
)
4444
def 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)

0 commit comments

Comments
 (0)