File tree Expand file tree Collapse file tree 3 files changed +9
-7
lines changed Expand file tree Collapse file tree 3 files changed +9
-7
lines changed 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 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