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:
@@ -29,6 +29,7 @@ from ...test_modeling_flax_common import FlaxModelTesterMixin, ids_tensor, rando
|
||||
if is_flax_available():
|
||||
import jax
|
||||
import jax.numpy as jnp
|
||||
|
||||
from transformers.modeling_flax_pytorch_utils import (
|
||||
convert_pytorch_state_dict_to_flax,
|
||||
load_flax_weights_in_pytorch_model,
|
||||
@@ -178,7 +179,6 @@ class FlaxGPTJModelTester:
|
||||
|
||||
@require_flax
|
||||
class FlaxGPTJModelTest(FlaxModelTesterMixin, FlaxGenerationTesterMixin, unittest.TestCase):
|
||||
|
||||
all_model_classes = (FlaxGPTJModel, FlaxGPTJForCausalLM) if is_flax_available() else ()
|
||||
all_generative_model_classes = (FlaxGPTJForCausalLM,) if is_flax_available() else ()
|
||||
|
||||
|
||||
@@ -361,7 +361,6 @@ class GPTJModelTester:
|
||||
|
||||
@require_torch
|
||||
class GPTJModelTest(ModelTesterMixin, GenerationTesterMixin, unittest.TestCase):
|
||||
|
||||
all_model_classes = (
|
||||
(GPTJModel, GPTJForCausalLM, GPTJForSequenceClassification, GPTJForQuestionAnswering)
|
||||
if is_torch_available()
|
||||
|
||||
@@ -287,7 +287,6 @@ class TFGPTJModelTester:
|
||||
|
||||
@require_tf
|
||||
class TFGPTJModelTest(TFModelTesterMixin, TFCoreModelTesterMixin, unittest.TestCase):
|
||||
|
||||
all_model_classes = (
|
||||
(TFGPTJForCausalLM, TFGPTJForSequenceClassification, TFGPTJForQuestionAnswering, TFGPTJModel)
|
||||
if is_tf_available()
|
||||
|
||||
Reference in New Issue
Block a user