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:
@@ -18,8 +18,8 @@ import unittest
|
||||
|
||||
import numpy as np
|
||||
from datasets import load_dataset
|
||||
|
||||
from huggingface_hub import hf_hub_download
|
||||
|
||||
from transformers.testing_utils import require_torch, require_vision
|
||||
from transformers.utils import is_torch_available, is_vision_available
|
||||
|
||||
@@ -131,7 +131,6 @@ class Mask2FormerImageProcessingTester(unittest.TestCase):
|
||||
@require_torch
|
||||
@require_vision
|
||||
class Mask2FormerImageProcessingTest(ImageProcessingSavingTestMixin, unittest.TestCase):
|
||||
|
||||
image_processing_class = Mask2FormerImageProcessor if (is_vision_available() and is_torch_available()) else None
|
||||
|
||||
def setUp(self):
|
||||
|
||||
@@ -173,7 +173,6 @@ class Mask2FormerModelTester:
|
||||
|
||||
@require_torch
|
||||
class Mask2FormerModelTest(ModelTesterMixin, unittest.TestCase):
|
||||
|
||||
all_model_classes = (Mask2FormerModel, Mask2FormerForUniversalSegmentation) if is_torch_available() else ()
|
||||
|
||||
is_encoder_decoder = False
|
||||
|
||||
Reference in New Issue
Block a user