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:
@@ -23,14 +23,12 @@ from typing import Callable, Optional
|
||||
|
||||
import numpy as np
|
||||
|
||||
# Ensure there are no circular imports when importing the parent class
|
||||
from transformers import PreTrainedTokenizerFast
|
||||
|
||||
from transformers import (
|
||||
BatchEncoding,
|
||||
BertTokenizer,
|
||||
BertTokenizerFast,
|
||||
PreTrainedTokenizer,
|
||||
PreTrainedTokenizerFast,
|
||||
TensorType,
|
||||
TokenSpan,
|
||||
is_tokenizers_available,
|
||||
|
||||
Reference in New Issue
Block a user