Skip to content

Commit 7a27c87

Browse files
committed
Apply more review suggestions
1 parent 98746b5 commit 7a27c87

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

docs/configuring.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -902,7 +902,7 @@ Each pattern can be templated using Jinja.
902902

903903
```yaml
904904
_exclude:
905-
- "{%- if _operation == 'update' -%}src/*_example.py{%- endif %}"
905+
- "{% if _operation == 'update' -%}src/*_example.py{% endif %}"
906906
```
907907

908908
!!! info

docs/creating.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ Some variables are only available in select contexts:
131131

132132
### `_operation`
133133

134-
The current operation, either `copy` or `update`.
134+
The current operation, either `"copy"` or `"update"`.
135135

136136
Availability: [`exclude`](configuring.md#exclude), [`tasks`](configuring.md#tasks)
137137

tests/test_context.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def test_exclude_templating_with_operation(
1818
"""
1919
src, dst = map(tmp_path_factory.mktemp, ("src", "dst"))
2020

21-
template = r"{%- if _operation == 'update' %}copy-only{%- endif %}"
21+
template = "{% if _operation == 'update' %}copy-only{% endif %}"
2222
with local.cwd(src):
2323
build_file_tree(
2424
{

0 commit comments

Comments
 (0)