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:
@@ -363,7 +363,6 @@ class FlaubertModelTester(object):
|
||||
|
||||
@require_torch
|
||||
class FlaubertModelTest(ModelTesterMixin, unittest.TestCase):
|
||||
|
||||
all_model_classes = (
|
||||
(
|
||||
FlaubertModel,
|
||||
@@ -439,7 +438,6 @@ class FlaubertModelTest(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:
|
||||
|
||||
# FlauBertForMultipleChoice behaves incorrectly in JIT environments.
|
||||
if model_class == FlaubertForMultipleChoice:
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user