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:
@@ -17,8 +17,8 @@ import tempfile
|
||||
import unittest
|
||||
|
||||
import timeout_decorator # noqa
|
||||
|
||||
from parameterized import parameterized
|
||||
|
||||
from transformers import FSMTConfig, is_torch_available
|
||||
from transformers.testing_utils import require_sentencepiece, require_tokenizers, require_torch, slow, torch_device
|
||||
from transformers.utils import cached_property
|
||||
@@ -528,7 +528,6 @@ class TestSinusoidalPositionalEmbeddings(unittest.TestCase):
|
||||
|
||||
@unittest.skip("different from marian (needs more research)")
|
||||
def test_positional_emb_weights_against_marian(self):
|
||||
|
||||
desired_weights = torch.tensor(
|
||||
[
|
||||
[0, 0, 0, 0, 0],
|
||||
|
||||
Reference in New Issue
Block a user