mirror of
https://github.com/k2-fsa/icefall.git
synced 2025-08-09 01:52:41 +00:00
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:
parent
78b8792d1d
commit
08473a17aa
@ -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
|
||||||
|
@ -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,
|
||||||
|
@ -10,4 +10,5 @@ exclude = '''
|
|||||||
| \.github
|
| \.github
|
||||||
)/
|
)/
|
||||||
| make_kn_lm.py
|
| make_kn_lm.py
|
||||||
|
| icefall\/__init__\.py
|
||||||
'''
|
'''
|
||||||
|
Loading…
x
Reference in New Issue
Block a user