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:
@@ -96,7 +96,6 @@ def prepare_semantic_batch_inputs():
|
||||
@require_torch
|
||||
@require_vision
|
||||
class SegformerImageProcessingTest(ImageProcessingSavingTestMixin, unittest.TestCase):
|
||||
|
||||
image_processing_class = SegformerImageProcessor if is_vision_available() else None
|
||||
|
||||
def setUp(self):
|
||||
|
||||
@@ -160,7 +160,6 @@ class SegformerModelTester:
|
||||
|
||||
@require_torch
|
||||
class SegformerModelTest(ModelTesterMixin, unittest.TestCase):
|
||||
|
||||
all_model_classes = (
|
||||
(
|
||||
SegformerModel,
|
||||
|
||||
@@ -288,7 +288,6 @@ class TFSegformerModelTest(TFModelTesterMixin, unittest.TestCase):
|
||||
check_hidden_states_output(inputs_dict, config, model_class)
|
||||
|
||||
def test_model_outputs_equivalence(self):
|
||||
|
||||
config, inputs_dict = self.model_tester.prepare_config_and_inputs_for_common()
|
||||
|
||||
def check_equivalence(model, tuple_inputs, dict_inputs, additional_kwargs={}):
|
||||
|
||||
Reference in New Issue
Block a user