Cleanup quality (#21493)

* Remove mentions of flake8/isort

* Clean up inits

* Deall with all other inits

* Last special rule for dummy files
This commit is contained in:
Sylvain Gugger
2023-02-07 12:27:31 -05:00
committed by GitHub
parent 571fa585b6
commit 67d074874d
220 changed files with 26 additions and 832 deletions

View File

@@ -2469,7 +2469,7 @@ class TokenizerTesterMixin:
batch_encoded_sequence = tokenizer.batch_encode_plus([sequence, sequence], return_tensors="np")
# TODO: add forward through JAX/Flax when PR is merged
# This is currently here to make flake8 happy !
# This is currently here to make ruff happy !
if encoded_sequence is None:
raise ValueError("Cannot convert list to numpy tensor on encode_plus()")
@@ -2484,7 +2484,7 @@ class TokenizerTesterMixin:
)
# TODO: add forward through JAX/Flax when PR is merged
# This is currently here to make flake8 happy !
# This is currently here to make ruff happy !
if encoded_sequence_fast is None:
raise ValueError("Cannot convert list to numpy tensor on encode_plus() (fast)")