Update quality tooling for formatting (#21480)
* Result of black 23.1 * Update target to Python 3.7 * Switch flake8 to ruff * Configure isort * Configure isort * Apply isort with line limit * Put the right black version * adapt black in check copies * Fix copies
This commit is contained in:
@@ -266,7 +266,6 @@ class TFViTMAEModelTest(TFModelTesterMixin, unittest.TestCase):
|
||||
# overwrite from common since TFViTMAEForPretraining has random masking, we need to fix the noise
|
||||
# to generate masks during test
|
||||
def check_pt_tf_models(self, tf_model, pt_model, tf_inputs_dict):
|
||||
|
||||
# make masks reproducible
|
||||
np.random.seed(2)
|
||||
|
||||
@@ -453,7 +452,6 @@ class TFViTMAEModelTest(TFModelTesterMixin, unittest.TestCase):
|
||||
|
||||
@slow
|
||||
def test_model_from_pretrained(self):
|
||||
|
||||
model = TFViTMAEModel.from_pretrained("google/vit-base-patch16-224")
|
||||
self.assertIsNotNone(model)
|
||||
|
||||
|
||||
@@ -209,7 +209,6 @@ class ViTMAEModelTest(ModelTesterMixin, unittest.TestCase):
|
||||
# overwrite from common since ViTMAEForPretraining has random masking, we need to fix the noise
|
||||
# to generate masks during test
|
||||
def check_pt_tf_models(self, tf_model, pt_model, pt_inputs_dict):
|
||||
|
||||
# make masks reproducible
|
||||
np.random.seed(2)
|
||||
|
||||
@@ -224,7 +223,6 @@ class ViTMAEModelTest(ModelTesterMixin, unittest.TestCase):
|
||||
super().check_pt_tf_models(tf_model, pt_model, pt_inputs_dict)
|
||||
|
||||
def test_save_load(self):
|
||||
|
||||
config, inputs_dict = self.model_tester.prepare_config_and_inputs_for_common()
|
||||
|
||||
for model_class in self.all_model_classes:
|
||||
|
||||
Reference in New Issue
Block a user