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:
@@ -219,7 +219,6 @@ class SwinModelTester:
|
||||
|
||||
@require_torch
|
||||
class SwinModelTest(ModelTesterMixin, unittest.TestCase):
|
||||
|
||||
all_model_classes = (
|
||||
(
|
||||
SwinModel,
|
||||
|
||||
@@ -177,7 +177,6 @@ class TFSwinModelTester:
|
||||
|
||||
@require_tf
|
||||
class TFSwinModelTest(TFModelTesterMixin, unittest.TestCase):
|
||||
|
||||
all_model_classes = (
|
||||
(
|
||||
TFSwinModel,
|
||||
@@ -335,7 +334,6 @@ class TFSwinModelTest(TFModelTesterMixin, unittest.TestCase):
|
||||
)
|
||||
|
||||
def test_hidden_states_output(self):
|
||||
|
||||
config, inputs_dict = self.model_tester.prepare_config_and_inputs_for_common()
|
||||
|
||||
image_size = to_2tuple(self.model_tester.image_size)
|
||||
|
||||
Reference in New Issue
Block a user