From b9af9740a5b42930d4adbbc58d6ce72e4fd5e844 Mon Sep 17 00:00:00 2001 From: Ted Cook Date: Thu, 24 Oct 2024 10:59:07 -0600 Subject: [PATCH] Add missing filter docs --- .github/workflows/pytest.yml | 6 +++--- plugins/filter/custom_filter.py | 4 ++++ 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/pytest.yml b/.github/workflows/pytest.yml index 99d5dc8..76fc4b7 100644 --- a/.github/workflows/pytest.yml +++ b/.github/workflows/pytest.yml @@ -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 @@ -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" diff --git a/plugins/filter/custom_filter.py b/plugins/filter/custom_filter.py index d57d4fe..6a5c0ed 100644 --- a/plugins/filter/custom_filter.py +++ b/plugins/filter/custom_filter.py @@ -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. @@ -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 {