зеркало из https://github.com/microsoft/reconner.git
Fixing imports
This commit is contained in:
Родитель
e4933ffe02
Коммит
764f1e8457
|
@ -11,7 +11,7 @@ def main(data_dir: Path):
|
|||
ds_stats = ds.apply(get_ner_stats, serialize=True, no_print=True)
|
||||
for name, stats in ds_stats.items():
|
||||
print(f"{name}")
|
||||
print('=' * 50)
|
||||
print("=" * 50)
|
||||
print(stats)
|
||||
|
||||
|
||||
|
|
|
@ -2,5 +2,5 @@
|
|||
set -x
|
||||
|
||||
# Sort imports one per line, so autoflake can remove unused imports
|
||||
isort --recursive --force-single-line-imports --thirdparty typer --apply typer tests docs/src
|
||||
isort --recursive --force-single-line-imports --thirdparty recon --apply recon tests docs/src
|
||||
sh ./scripts/format.sh
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#!/bin/sh -e
|
||||
set -x
|
||||
|
||||
autoflake --remove-all-unused-imports --recursive --remove-unused-variables --in-place docs/src/ typer tests --exclude=__init__.py
|
||||
black typer tests docs/src
|
||||
isort --multi-line=3 --trailing-comma --force-grid-wrap=0 --combine-as --line-width 88 --recursive --thirdparty typer --apply typer tests docs/src
|
||||
autoflake --remove-all-unused-imports --recursive --remove-unused-variables --in-place docs/src/ recon tests --exclude=__init__.py
|
||||
black recon tests docs/src
|
||||
isort --multi-line=3 --trailing-comma --force-grid-wrap=0 --combine-as --line-width 88 --recursive --thirdparty recon --apply recon tests docs/src
|
||||
|
|
Загрузка…
Ссылка в новой задаче