Skip to content

Commit ebb748d

Browse files
authored
Change default verbosity to 1. (#138)
1 parent edcdc24 commit ebb748d

File tree

4 files changed

+10
-3
lines changed

4 files changed

+10
-3
lines changed

docs/source/changes.rst

+7
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,13 @@ all releases are available on `PyPI <https://pypi.org/project/pytask>`_ and
77
`Anaconda.org <https://anaconda.org/conda-forge/pytask>`_.
88

99

10+
0.1.1 - 2021-xx-xx
11+
------------------
12+
13+
- :gh:`138` changes the default verbosity to ``1`` which displays the live table during
14+
execution and ``0`` display the symbols for outcomes (e.g. ``.``, ``F``, ``s``).
15+
16+
1017
0.1.0 - 2021-07-20
1118
------------------
1219

src/_pytask/config.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ def pytask_parse_config(config, config_from_cli, config_from_file):
193193
config_from_cli,
194194
config_from_file,
195195
key="verbose",
196-
default=0,
196+
default=1,
197197
callback=lambda x: x if x is None else int(x),
198198
)
199199

src/_pytask/live.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ def pytask_post_parse(config):
1515
live_manager = LiveManager()
1616
config["pm"].register(live_manager, "live_manager")
1717

18-
if config["verbose"] >= 0:
18+
if config["verbose"] >= 1:
1919
live_execution = LiveExecution(live_manager, config["paths"])
2020
config["pm"].register(live_execution)
2121

tests/test_live.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ def test_verbose_mode_execution(tmp_path, runner, verbose):
1616

1717
args = [tmp_path.as_posix()]
1818
if not verbose:
19-
args.append("-v -1")
19+
args.append("-v 0")
2020
result = runner.invoke(cli, args)
2121

2222
assert ("Task" in result.output) is verbose

0 commit comments

Comments
 (0)