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:
@@ -33,6 +33,7 @@ if is_flax_available():
|
||||
|
||||
import jax
|
||||
import jax.numpy as jnp
|
||||
|
||||
from transformers.models.bart.modeling_flax_bart import (
|
||||
FlaxBartForConditionalGeneration,
|
||||
FlaxBartForQuestionAnswering,
|
||||
|
||||
@@ -132,7 +132,6 @@ class TestTokenizationBart(TokenizerTesterMixin, unittest.TestCase):
|
||||
|
||||
@require_torch
|
||||
def test_special_tokens(self):
|
||||
|
||||
src_text = ["A long paragraph for summarization."]
|
||||
tgt_text = [
|
||||
"Summary of the text.",
|
||||
|
||||
Reference in New Issue
Block a user