Modify init (#301)

* update icefall/__init__.py to import more common functions.

* update icefall/__init__.py

* make imports style consistent.

* exclude black check for icefall/__init__.py in pyproject.toml.
This commit is contained in:
Zengwei Yao 2022-04-10 23:29:28 +08:00 committed by GitHub
parent 78b8792d1d
commit 08473a17aa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 13 additions and 0 deletions

View File

@ -4,6 +4,8 @@ repos:
hooks: hooks:
- id: black - id: black
args: [--line-length=80] args: [--line-length=80]
additional_dependencies: ['click==8.0.1']
exclude: icefall\/__init__\.py
- repo: https://github.com/PyCQA/flake8 - repo: https://github.com/PyCQA/flake8
rev: 3.9.2 rev: 3.9.2

View File

@ -1,3 +1,13 @@
# isort:skip_file
from . import (
checkpoint,
decode,
dist,
env,
utils
)
from .checkpoint import ( from .checkpoint import (
average_checkpoints, average_checkpoints,
find_checkpoints, find_checkpoints,

View File

@ -10,4 +10,5 @@ exclude = '''
| \.github | \.github
)/ )/
| make_kn_lm.py | make_kn_lm.py
| icefall\/__init__\.py
''' '''