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:
@@ -71,7 +71,6 @@ class LongT5ModelTester:
|
||||
decoder_layers=None,
|
||||
large_model_config_path="google/long-t5-local-large",
|
||||
):
|
||||
|
||||
self.parent = parent
|
||||
self.batch_size = batch_size
|
||||
self.encoder_seq_length = encoder_seq_length
|
||||
@@ -502,7 +501,6 @@ class LongT5ModelTester:
|
||||
|
||||
@require_torch
|
||||
class LongT5ModelTest(ModelTesterMixin, GenerationTesterMixin, unittest.TestCase):
|
||||
|
||||
all_model_classes = (LongT5Model, LongT5ForConditionalGeneration) if is_torch_available() else ()
|
||||
all_generative_model_classes = (LongT5ForConditionalGeneration,) if is_torch_available() else ()
|
||||
fx_compatible = False
|
||||
@@ -919,7 +917,6 @@ class LongT5EncoderOnlyModelTester:
|
||||
scope=None,
|
||||
large_model_config_path="google/long-t5-local-large",
|
||||
):
|
||||
|
||||
self.parent = parent
|
||||
self.batch_size = batch_size
|
||||
self.encoder_seq_length = encoder_seq_length
|
||||
|
||||
Reference in New Issue
Block a user