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:
@@ -297,7 +297,6 @@ class Blenderbot90MIntegrationTests(unittest.TestCase):
|
||||
|
||||
@slow
|
||||
def test_90_generation_from_long_input(self):
|
||||
|
||||
src_text = [
|
||||
"Social anxiety\nWow, I am never shy. Do you have anxiety?\nYes. I end up sweating and blushing and feel"
|
||||
" like i'm going to throw up.\nand why is that?"
|
||||
|
||||
@@ -34,6 +34,7 @@ if is_flax_available():
|
||||
|
||||
import jax
|
||||
import jax.numpy as jnp
|
||||
|
||||
from transformers.models.blenderbot_small.modeling_flax_blenderbot_small import (
|
||||
FlaxBlenderbotSmallForConditionalGeneration,
|
||||
FlaxBlenderbotSmallModel,
|
||||
|
||||
@@ -27,7 +27,6 @@ from ...test_tokenization_common import TokenizerTesterMixin
|
||||
|
||||
|
||||
class BlenderbotSmallTokenizerTest(TokenizerTesterMixin, unittest.TestCase):
|
||||
|
||||
tokenizer_class = BlenderbotSmallTokenizer
|
||||
test_rust_tokenizer = False
|
||||
|
||||
|
||||
Reference in New Issue
Block a user