Skip to content

Commit 4f9001b

Browse files
committed
more tests for client management
1 parent d2d786d commit 4f9001b

File tree

13 files changed

+492
-4328
lines changed

13 files changed

+492
-4328
lines changed

MANIFEST.in

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
graft idom/client/app/build
1+
recursive-eclude idom/client/app/node_modules *
2+
recursive-eclude idom/client/app/web_modules *
3+
recursive-include idom/client/app *
24
include idom/py.typed
35
include LICENSE
46
include requirements/prod.txt

idom/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
)
55

66
try:
7-
__version__ = _get_distribution(__name__).version
7+
__version__: str = _get_distribution(__name__).version
88
except _DistributionNotFound: # pragma: no cover
99
# package is not installed
1010
__version__ = "0.0.0"

idom/cli/commands.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,15 +39,15 @@ def build(
3939

4040

4141
@main.command()
42-
def restore():
42+
def restore() -> None:
4343
"""Reset the client to its original state"""
4444
manage_client.restore()
4545

4646

4747
@show.command()
4848
def build_config() -> None:
4949
"""Show the state of IDOM's build config"""
50-
typer.echo(json.dumps(manage_client.build_config().config, indent=2))
50+
typer.echo(json.dumps(manage_client.build_config().data, indent=2))
5151
return None
5252

5353

idom/cli/settings.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import os
2-
from typing import List
2+
from typing import List, Callable, Dict, Type, Any
33

44
NAMES: List[str] = []
55

@@ -8,20 +8,20 @@
88
IDOM_CLI_DEBUG = False
99

1010

11-
_to_str = {
11+
_to_str: Dict[Type[Any], Callable[[Any], str]] = {
1212
bool: lambda x: str(int(x)),
13-
str: lambda x: x,
13+
str: lambda x: str(x),
1414
list: lambda x: ",".join(x),
1515
}
1616

17-
_from_str = {
17+
_from_str: Dict[Type[Any], Callable[[str], Any]] = {
1818
bool: lambda x: bool(int(x)),
1919
str: lambda x: x,
2020
list: lambda x: x.split(","),
2121
}
2222

2323

24-
def _load_from_environ():
24+
def _load_from_environ() -> None:
2525
gs = globals()
2626
for k, v in globals().items():
2727
if k.startswith("IDOM_"):

0 commit comments

Comments
 (0)