Skip to content

Commit 5fe14bd

Browse files
committed
fix: addressed some issues from code review
1 parent 4b7d9e6 commit 5fe14bd

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

copier/template.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,8 +170,8 @@ class Task:
170170
If `None`, the project directory will be used.
171171
172172
failure_message:
173-
If provided, show the message when a task fails.
174-
If not provided, show the exception message from `subprocess`.
173+
Provides a message to pritn if the task fails.
174+
If not provided, the subprocess exception message will be shown.
175175
"""
176176

177177
cmd: str | Sequence[str]

docs/configuring.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1602,7 +1602,7 @@ Refer to the example provided below for more information.
16021602
- command: Remove-Item {{ name_of_the_project }}\\README.md
16031603
when: "{{ _copier_conf.os == 'windows' }}"
16041604
- command: finalize-project
1605-
failure_message: Coudln't finalize {{ name_of_the_project }}
1605+
failure_message: Couldn't finalize {{ name_of_the_project }}
16061606
```
16071607
16081608
Note: the example assumes you use [Invoke](https://www.pyinvoke.org/) as

tests/test_tasks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ def test_pretend_mode(tmp_path_factory: pytest.TempPathFactory) -> None:
124124
copier.run_copy(str(src), dst, pretend=True, unsafe=True)
125125
assert not (dst / "created-by-task.txt").exists()
126126

127-
Literal["linux", "macos", "windows"]
127+
128128
@pytest.mark.parametrize(
129129
"os, filename",
130130
[

0 commit comments

Comments
 (0)