Skip to content

Commit b16a1a1

Browse files
chg: linting with black 💄⬛
1 parent 2e0bf61 commit b16a1a1

17 files changed

+481
-294
lines changed

deep_reference_parser/__init__.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,20 @@
1-
# Tensorflow and Keras emikt a very large number of warnings that are very
2-
# distracting on the command line. These lines here (while undesireable)
1+
# Tensorflow and Keras emikt a very large number of warnings that are very
2+
# distracting on the command line. These lines here (while undesireable)
33
# reduce the level of verbosity.
44

55
import sys
66
import warnings
77
import os
8-
os.environ['TF_CPP_MIN_LOG_LEVEL'] = '2'
8+
9+
os.environ["TF_CPP_MIN_LOG_LEVEL"] = "2"
910

1011
if not sys.warnoptions:
1112
warnings.filterwarnings("ignore", category=FutureWarning)
1213
warnings.filterwarnings("ignore", category=DeprecationWarning)
1314
warnings.filterwarnings("ignore", category=UserWarning)
1415

1516
import tensorflow as tf
17+
1618
tf.compat.v1.logging.set_verbosity(tf.compat.v1.logging.ERROR)
1719

1820
from .common import download_model_artefact

deep_reference_parser/common.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,10 @@
1212
def get_path(path):
1313
return os.path.join(os.path.dirname(__file__), path)
1414

15-
SPLITTER_CFG = get_path(f'configs/{__splitter_model_version__}.ini')
16-
PARSER_CFG = get_path(f'configs/{__parser_model_version__}.ini')
15+
16+
SPLITTER_CFG = get_path(f"configs/{__splitter_model_version__}.ini")
17+
PARSER_CFG = get_path(f"configs/{__parser_model_version__}.ini")
18+
1719

1820
def download_model_artefact(artefact, s3_slug):
1921
""" Checks if model artefact exists and downloads if not

0 commit comments

Comments
 (0)