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:
@@ -246,7 +246,6 @@ class ConvBertModelTester:
|
||||
|
||||
@require_torch
|
||||
class ConvBertModelTest(ModelTesterMixin, unittest.TestCase):
|
||||
|
||||
all_model_classes = (
|
||||
(
|
||||
ConvBertModel,
|
||||
@@ -419,7 +418,6 @@ class ConvBertModelTest(ModelTesterMixin, unittest.TestCase):
|
||||
def test_torchscript_device_change(self):
|
||||
config, inputs_dict = self.model_tester.prepare_config_and_inputs_for_common()
|
||||
for model_class in self.all_model_classes:
|
||||
|
||||
# ConvBertForMultipleChoice behaves incorrectly in JIT environments.
|
||||
if model_class == ConvBertForMultipleChoice:
|
||||
return
|
||||
|
||||
@@ -224,7 +224,6 @@ class TFConvBertModelTester:
|
||||
|
||||
@require_tf
|
||||
class TFConvBertModelTest(TFModelTesterMixin, unittest.TestCase):
|
||||
|
||||
all_model_classes = (
|
||||
(
|
||||
TFConvBertModel,
|
||||
|
||||
Reference in New Issue
Block a user