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:
@@ -74,7 +74,6 @@ class ViTImageProcessingTester(unittest.TestCase):
|
||||
@require_torch
|
||||
@require_vision
|
||||
class ViTImageProcessingTest(ImageProcessingSavingTestMixin, unittest.TestCase):
|
||||
|
||||
image_processing_class = ViTImageProcessor if is_vision_available() else None
|
||||
|
||||
def setUp(self):
|
||||
|
||||
@@ -25,8 +25,8 @@ from ...test_modeling_flax_common import FlaxModelTesterMixin, floats_tensor
|
||||
|
||||
|
||||
if is_flax_available():
|
||||
|
||||
import jax
|
||||
|
||||
from transformers.models.vit.modeling_flax_vit import FlaxViTForImageClassification, FlaxViTModel
|
||||
|
||||
|
||||
@@ -125,7 +125,6 @@ class FlaxViTModelTester(unittest.TestCase):
|
||||
|
||||
@require_flax
|
||||
class FlaxViTModelTest(FlaxModelTesterMixin, unittest.TestCase):
|
||||
|
||||
all_model_classes = (FlaxViTModel, FlaxViTForImageClassification) if is_flax_available() else ()
|
||||
|
||||
def setUp(self) -> None:
|
||||
|
||||
@@ -206,7 +206,6 @@ class TFViTModelTest(TFModelTesterMixin, unittest.TestCase):
|
||||
|
||||
@slow
|
||||
def test_model_from_pretrained(self):
|
||||
|
||||
model = TFViTModel.from_pretrained("google/vit-base-patch16-224")
|
||||
self.assertIsNotNone(model)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user