mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-26 09:56:28 +03:00
Restore spacy.cli.project API (#13053)
* Restore spacy.cli.project API * Fix typing errors, add simple import test
This commit is contained in:
parent
65e7bd54f5
commit
77c568e524
|
@ -22,8 +22,17 @@ from .init_pipeline import init_pipeline_cli # noqa: F401
|
|||
from .package import package # noqa: F401
|
||||
from .pretrain import pretrain # noqa: F401
|
||||
from .profile import profile # noqa: F401
|
||||
from .train import train_cli # noqa: F401
|
||||
from .validate import validate # noqa: F401
|
||||
from .project.assets import project_assets # type: ignore[attr-defined] # noqa: F401
|
||||
from .project.clone import project_clone # type: ignore[attr-defined] # noqa: F401
|
||||
from .project.document import ( # type: ignore[attr-defined] # noqa: F401
|
||||
project_document,
|
||||
)
|
||||
from .project.dvc import project_update_dvc # type: ignore[attr-defined] # noqa: F401
|
||||
from .project.pull import project_pull # type: ignore[attr-defined] # noqa: F401
|
||||
from .project.push import project_push # type: ignore[attr-defined] # noqa: F401
|
||||
from .project.run import project_run # type: ignore[attr-defined] # noqa: F401
|
||||
from .train import train_cli # type: ignore[attr-defined] # noqa: F401
|
||||
from .validate import validate # type: ignore[attr-defined] # noqa: F401
|
||||
|
||||
|
||||
@app.command("link", no_args_is_help=True, deprecated=True, hidden=True)
|
||||
|
|
0
spacy/cli/project/__init__.py
Normal file
0
spacy/cli/project/__init__.py
Normal file
1
spacy/cli/project/assets.py
Normal file
1
spacy/cli/project/assets.py
Normal file
|
@ -0,0 +1 @@
|
|||
from weasel.cli.assets import *
|
1
spacy/cli/project/clone.py
Normal file
1
spacy/cli/project/clone.py
Normal file
|
@ -0,0 +1 @@
|
|||
from weasel.cli.clone import *
|
1
spacy/cli/project/document.py
Normal file
1
spacy/cli/project/document.py
Normal file
|
@ -0,0 +1 @@
|
|||
from weasel.cli.document import *
|
1
spacy/cli/project/dvc.py
Normal file
1
spacy/cli/project/dvc.py
Normal file
|
@ -0,0 +1 @@
|
|||
from weasel.cli.dvc import *
|
1
spacy/cli/project/pull.py
Normal file
1
spacy/cli/project/pull.py
Normal file
|
@ -0,0 +1 @@
|
|||
from weasel.cli.pull import *
|
1
spacy/cli/project/push.py
Normal file
1
spacy/cli/project/push.py
Normal file
|
@ -0,0 +1 @@
|
|||
from weasel.cli.push import *
|
1
spacy/cli/project/remote_storage.py
Normal file
1
spacy/cli/project/remote_storage.py
Normal file
|
@ -0,0 +1 @@
|
|||
from weasel.cli.remote_storage import *
|
1
spacy/cli/project/run.py
Normal file
1
spacy/cli/project/run.py
Normal file
|
@ -0,0 +1 @@
|
|||
from weasel.cli.run import *
|
|
@ -1061,3 +1061,8 @@ def test_debug_data_trainable_lemmatizer_not_annotated():
|
|||
|
||||
data = _compile_gold(train_examples, ["trainable_lemmatizer"], nlp, True)
|
||||
assert data["no_lemma_annotations"] == 2
|
||||
|
||||
|
||||
def test_project_api_imports():
|
||||
from spacy.cli import project_run
|
||||
from spacy.cli.project.run import project_run # noqa: F401, F811
|
||||
|
|
Loading…
Reference in New Issue
Block a user