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:
@@ -105,7 +105,6 @@ def prepare_semantic_batch_inputs():
|
||||
@require_torch
|
||||
@require_vision
|
||||
class BeitImageProcessingTest(ImageProcessingSavingTestMixin, unittest.TestCase):
|
||||
|
||||
image_processing_class = BeitImageProcessor if is_vision_available() else None
|
||||
|
||||
def setUp(self):
|
||||
|
||||
@@ -27,6 +27,7 @@ from ...test_modeling_flax_common import FlaxModelTesterMixin, floats_tensor, id
|
||||
|
||||
if is_flax_available():
|
||||
import jax
|
||||
|
||||
from transformers import FlaxBeitForImageClassification, FlaxBeitForMaskedImageModeling, FlaxBeitModel
|
||||
|
||||
if is_vision_available():
|
||||
@@ -140,7 +141,6 @@ class FlaxBeitModelTester(unittest.TestCase):
|
||||
|
||||
@require_flax
|
||||
class FlaxBeitModelTest(FlaxModelTesterMixin, unittest.TestCase):
|
||||
|
||||
all_model_classes = (
|
||||
(FlaxBeitModel, FlaxBeitForImageClassification, FlaxBeitForMaskedImageModeling) if is_flax_available() else ()
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user