Skip to content

Commit

Permalink
[Run] Created the MLRun function decorator: @context (#2275)
Browse files Browse the repository at this point in the history
  • Loading branch information
guy1992l committed Aug 23, 2022
1 parent 48e15a1 commit 8993835
Show file tree
Hide file tree
Showing 3 changed files with 1,225 additions and 3 deletions.
11 changes: 10 additions & 1 deletion mlrun/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,14 @@

# flake8: noqa - this is until we take care of the F401 violations with respect to __all__ & sphinx

__all__ = ["get_version", "set_environment", "code_to_function", "import_function"]
__all__ = [
"get_version",
"set_environment",
"code_to_function",
"import_function",
"context",
"ArtifactType",
]

import getpass
from os import environ, path
Expand Down Expand Up @@ -47,7 +54,9 @@
)
from .projects.project import _add_username_to_project_name_if_needed
from .run import (
ArtifactType,
code_to_function,
context,
function_to_module,
get_dataitem,
get_object,
Expand Down

0 comments on commit 8993835

Please sign in to comment.