Skip to content

Commit b47e06f

Browse files
committed
fix.
1 parent 8401ba8 commit b47e06f

File tree

3 files changed

+16
-15
lines changed

3 files changed

+16
-15
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,4 @@ tests/test_jupyter/*.txt
2727
.ruff_cache
2828
.venv
2929
docs/jupyter_execute
30+
.DS_Store

docs/source/_static/md/logging-live.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
```console
44

55
$ pytask --log-cli --log-cli-level=INFO --show-capture=log
6-
───────────────────────── Start pytask session ─────────────────────────
6+
───────────────────────── Start pytask session ─────────────────────────
77
Platform: win32 -- Python 3.12.0, pytask 0.5.3, pluggy 1.3.0
88
Root: C:\Users\pytask-dev\git\my_project
99
Collected 2 tasks.
@@ -13,22 +13,22 @@ Collected 2 tasks.
1313
╭───────────────────────────────────────────┬─────────╮
1414
│ Task │ Outcome │
1515
├───────────────────────────────────────────┼─────────┤
16-
│ <span class="termynal-dim">task_logging.py::</span>task_prepare_report │ <span class="termynal-success">. </span> │
17-
│ <span class="termynal-dim">task_logging.py::</span>task_publish_report │ <span class="termynal-failed">F </span> │
16+
│ <span class="termynal-dim">task_logging.py::</span>task_prepare_report │ <span class="termynal-success">. </span> │
17+
│ <span class="termynal-dim">task_logging.py::</span>task_publish_report │ <span class="termynal-failed">F </span> │
1818
╰───────────────────────────────────────────┴─────────╯
1919

20-
<span style="color: #bf2d2d">─────────────────────────────── Failures ───────────────────────────────</span>
20+
<span style="color: #bf2d2d">─────────────────────────────── Failures ───────────────────────────────</span>
2121

22-
<span style="color: #bf2d2d">─────────── Task </span><span style="color: #6c1e1e; font-weight: bold">task_logging.py::</span><span style="color: #bf2d2d">task_publish_report</span><span style="color: #bf2d2d"> failed ───────────</span>
22+
<span style="color: #bf2d2d">─────────── Task </span><span style="color: #6c1e1e; font-weight: bold">task_logging.py::</span><span style="color: #bf2d2d">task_publish_report</span><span style="color: #bf2d2d"> failed ───────────</span>
2323

24-
<span style="color: #f14c4c">╭─────────────────────</span><span style="color: #f14c4c; font-weight: bold;"> Traceback </span><span style="color: #6c1e1e; font-weight: bold">(most recent call last)</span><span style="color: #f14c4c"> ──────────────────────╮</span>
24+
<span style="color: #f14c4c">╭──────────────────</span><span style="color: #f14c4c; font-weight: bold;"> Traceback </span><span style="color: #6c1e1e; font-weight: bold">(most recent call last)</span><span style="color: #f14c4c"> ──────────────────╮</span>
2525
<span style="color: #cd3131">│</span> <span style="color: #cd3131">│</span>
26-
<span style="color: #cd3131">│</span> <span style="color: #e5e510">...\git\my_project\task_logging.py</span>:<span style="color: #3b8eea">18</span> in <span style="color: #23d18b">task_publish_report</span> <span style="color: #cd3131">│</span>
26+
<span style="color: #cd3131">│</span> <span style="color: #e5e510">...\git\my_project\task_logging.py</span>:<span style="color: #3b8eea">18</span> in <span style="color: #23d18b">task_publish_report</span> <span style="color: #cd3131">│</span>
2727
<span style="color: #cd3131">│</span> <span style="color: #cd3131">│</span>
28-
<span style="color: #cd3131">│</span> 15 │ logger.warning(<span style="color: #e5e510">"publishing report is about to fail"</span>) <span style="color: #cd3131">│</span>
29-
<span style="color: #cd3131">│</span> 16 │ print(<span style="color: #e5e510">"stdout from publish"</span>) <span style="color: #cd3131">│</span>
30-
<span style="color: #cd3131">│</span> 17 │ sys.stderr.write(<span style="color: #e5e510">"stderr from publish\n"</span>) <span style="color: #cd3131">│</span>
31-
<span style="color: #cd3131">│</span> <span style="color: #cd3131">❱ </span>18 │ <span style="color: #3b8eea">raise</span> <span style="color: #23d18b">RuntimeError</span>(<span style="color: #e5e510">"simulated publish failure"</span>) <span style="color: #cd3131">│</span>
28+
<span style="color: #cd3131">│</span> 15 │ logger.warning(<span style="color: #e5e510">"publishing report is about to fail"</span>) <span style="color: #cd3131">│</span>
29+
<span style="color: #cd3131">│</span> 16 │ print(<span style="color: #e5e510">"stdout from publish"</span>) <span style="color: #cd3131">│</span>
30+
<span style="color: #cd3131">│</span> 17 │ sys.stderr.write(<span style="color: #e5e510">"stderr from publish\n"</span>) <span style="color: #cd3131">│</span>
31+
<span style="color: #cd3131">│</span> <span style="color: #cd3131">❱ </span>18 │ <span style="color: #3b8eea">raise</span> <span style="color: #23d18b">RuntimeError</span>(<span style="color: #e5e510">"simulated publish failure"</span>) <span style="color: #cd3131">│</span>
3232
<span style="color: #cd3131">│</span> 19 <span style="color: #cd3131">│</span>
3333
<span style="color: #cd3131">╰───────────────────────────────────────────────────────────────────────╯</span>
3434
<span style="color: #f14c4c; font-weight: bold;">RuntimeError:</span> simulated publish failure

justfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,14 @@ lint:
2222
check: lint typing test
2323

2424
# Build documentation
25-
docs:
25+
docs *FLAGS:
2626
uv run --group plugin-list python scripts/update_plugin_list.py
27-
uv run --group docs zensical build
27+
uv run --group docs zensical build {{FLAGS}}
2828

2929
# Serve documentation with auto-reload
30-
docs-serve:
30+
docs-serve *FLAGS:
3131
uv run --group plugin-list python scripts/update_plugin_list.py
32-
uv run --group docs zensical serve -a 127.0.0.1:8000
32+
uv run --group docs zensical serve -a 127.0.0.1:8000 {{FLAGS}}
3333

3434
# Run tests with lowest dependency resolution (like CI)
3535
test-lowest:

0 commit comments

Comments
 (0)