Skip to content

Commit

Permalink
Apply more review suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
lkubb committed Nov 12, 2024
1 parent 98746b5 commit 7a27c87
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/configuring.md
Original file line number Diff line number Diff line change
Expand Up @@ -902,7 +902,7 @@ Each pattern can be templated using Jinja.

```yaml
_exclude:
- "{%- if _operation == 'update' -%}src/*_example.py{%- endif %}"
- "{% if _operation == 'update' -%}src/*_example.py{% endif %}"
```

!!! info
Expand Down
2 changes: 1 addition & 1 deletion docs/creating.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ Some variables are only available in select contexts:

### `_operation`

The current operation, either `copy` or `update`.
The current operation, either `"copy"` or `"update"`.

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

Expand Down
2 changes: 1 addition & 1 deletion tests/test_context.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def test_exclude_templating_with_operation(
"""
src, dst = map(tmp_path_factory.mktemp, ("src", "dst"))

template = r"{%- if _operation == 'update' %}copy-only{%- endif %}"
template = "{% if _operation == 'update' %}copy-only{% endif %}"
with local.cwd(src):
build_file_tree(
{
Expand Down

0 comments on commit 7a27c87

Please sign in to comment.