Sort imports for optional third-party libraries.

These libraries aren't always installed in the virtual environment where
isort is running. Declaring them properly avoids mixing these
third-party imports with local imports.
This commit is contained in:
Aymeric Augustin
2019-12-22 11:17:48 +01:00
parent 2a34d5b71b
commit c11b3e2926
10 changed files with 28 additions and 16 deletions

View File

@@ -9,9 +9,9 @@ import re
import numpy as np
import tensorflow as tf
from absl import app, flags, logging
from fastprogress import master_bar, progress_bar
from seqeval import metrics
from transformers import (
TF2_WEIGHTS_NAME,
BertConfig,