Updated ruff to the latest version (#31926)
* Updated ruff version and fixed the required code accorindg to the latest version. * Updated ruff version and fixed the required code accorindg to the latest version. * Added noqa directive to ignore 1 error shown by ruff
This commit is contained in:
@@ -56,7 +56,7 @@ class RoFormerTokenizationTest(TokenizerTesterMixin, unittest.TestCase):
|
||||
exp_tokens = [22943, 21332, 34431, 45904, 117, 306, 1231, 1231, 2653, 33994, 1266, 100]
|
||||
self.assertListEqual(tokenizer.convert_tokens_to_ids(input_tokens), exp_tokens)
|
||||
|
||||
def test_rust_tokenizer(self):
|
||||
def test_rust_tokenizer(self): # noqa: F811
|
||||
tokenizer = self.get_rust_tokenizer()
|
||||
input_text, output_text = self.get_chinese_input_output_texts()
|
||||
tokens = tokenizer.tokenize(input_text)
|
||||
|
||||
Reference in New Issue
Block a user