Add ruff, remove black, isort, flake8, pylint (#3092)
* black, isort, flake8 -> ruff * remove unused * add back needed import * fix
This commit is contained in:
@@ -15,7 +15,6 @@ class TestFSDPPatchIntegration:
|
||||
apply_init_unsharded_param_patch,
|
||||
)
|
||||
|
||||
# pylint: disable=protected-access
|
||||
original_init_sharded = FSDPParam._init_sharded_param
|
||||
original_init_unsharded = FSDPParam.init_unsharded_param
|
||||
|
||||
@@ -23,11 +22,9 @@ class TestFSDPPatchIntegration:
|
||||
apply_init_sharded_param_patch()
|
||||
apply_init_unsharded_param_patch()
|
||||
|
||||
assert (
|
||||
# pylint: disable=protected-access
|
||||
FSDPParam._init_sharded_param
|
||||
!= original_init_sharded
|
||||
), "_init_sharded_param was not patched"
|
||||
assert (
|
||||
FSDPParam.init_unsharded_param != original_init_unsharded
|
||||
), "init_unsharded_param was not patched"
|
||||
assert FSDPParam._init_sharded_param != original_init_sharded, (
|
||||
"_init_sharded_param was not patched"
|
||||
)
|
||||
assert FSDPParam.init_unsharded_param != original_init_unsharded, (
|
||||
"init_unsharded_param was not patched"
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user