Skip to content

Commit

Permalink
Add missing filter docs
Browse files Browse the repository at this point in the history
  • Loading branch information
teddyphreak committed Oct 24, 2024
1 parent 57e35ae commit b9af974
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- name: Set up python 3
uses: actions/setup-python@v4
with:
python-version: '3.x'
python-version: "3.x"

- name: Update ubuntu repositories
run: sudo apt-get update
Expand All @@ -39,5 +39,5 @@ jobs:
- name: Run molecule tests.
run: make test
env:
PY_COLORS: '1'
ANSIBLE_FORCE_COLOR: '1'
PY_COLORS: "1"
ANSIBLE_FORCE_COLOR: "1"
4 changes: 4 additions & 0 deletions plugins/filter/custom_filter.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@
- is_any_true(xs): Returns True if any element in the provided iterable is truthy.
- is_all_true(xs): Returns True if all elements in the provided iterable are truthy.
- search_regex(r, s): Checks if a string matches a given regex pattern.
- set_difference(x): Return the set difference on a list-pair of lists
- inner_product(x): Return the cartesian product of a list-pair of lists
These functions are designed to assist in data manipulation and processing tasks, particularly useful in contexts
where data structures need to be dynamically created, modified, or converted between different formats.
Expand Down Expand Up @@ -796,6 +798,8 @@ def filters(self):
- is_any_true: Checks if any element in an iterable is true.
- is_all_true: Checks if all elements in an iterable are true.
- search_regex: Checks if a string matches a given regex pattern.
- set_difference: Return the set difference on a list-pair of lists
- inner_product: Return the cartesian product of a list-pair of lists
"""

return {
Expand Down

0 comments on commit b9af974

Please sign in to comment.