1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2026-02-04 07:51:50 +00:00
community.general/plugins/filter
Matt Williams 864695f898
Add to_toml filter (#11423)
* Add to_toml filter

This is based heavily on the to_yaml filter, but
with a pared-down feature set.

* Protect import

* Don't quote datetime as a string

* Use Ansible error types

* Import correct error types

* Don't use AnsibleTypeError

It doesn't seem to be available on older Ansible
core versions.

* Fix antsibull-nox errors

* Install dependencies for to_toml integration test

Co-authored-by: Felix Fontein <felix@fontein.de>

* Reduce author list to main contributor

Co-authored-by: Felix Fontein <felix@fontein.de>

* Update version added for to_toml

Co-authored-by: Felix Fontein <felix@fontein.de>

* Use AnsibleError for missing import

Co-authored-by: Felix Fontein <felix@fontein.de>

* Use AnsibleFilterError for runtime type check

Co-authored-by: Felix Fontein <felix@fontein.de>

* Move common code to plugin_utils/_tags.py

* Mark module util as private

Co-authored-by: Felix Fontein <felix@fontein.de>

* Update BOTMETA for to_toml

Co-authored-by: Felix Fontein <felix@fontein.de>

* Fix typo

* Correct version number

Co-authored-by: Felix Fontein <felix@fontein.de>

* Use to_text for to_toml dict key conversions

Co-authored-by: Felix Fontein <felix@fontein.de>

* Add tomlkit requirement to docs

Co-authored-by: Felix Fontein <felix@fontein.de>

* Add missing import

* Add aliases for for to_toml integration test

---------

Co-authored-by: Felix Fontein <felix@fontein.de>
2026-01-22 06:41:49 +01:00
..
accumulate.py Sort imports with ruff check --fix (#11400) 2026-01-09 07:40:58 +01:00
counter.py Sort imports with ruff check --fix (#11400) 2026-01-09 07:40:58 +01:00
crc32.py Sort imports with ruff check --fix (#11400) 2026-01-09 07:40:58 +01:00
dict.py Reformat everything. 2025-11-01 13:46:53 +01:00
dict_kv.py Reformat everything. 2025-11-01 13:46:53 +01:00
from_csv.py Sort imports with ruff check --fix (#11400) 2026-01-09 07:40:58 +01:00
from_ini.py Sort imports with ruff check --fix (#11400) 2026-01-09 07:40:58 +01:00
groupby_as_dict.py Sort imports with ruff check --fix (#11400) 2026-01-09 07:40:58 +01:00
hashids.py Sort imports with ruff check --fix (#11400) 2026-01-09 07:40:58 +01:00
hashids_decode.yml Add default license header to files which have no copyright or license header yet (#5074) 2022-08-05 14:03:38 +02:00
hashids_encode.yml Add default license header to files which have no copyright or license header yet (#5074) 2022-08-05 14:03:38 +02:00
jc.py Sort imports with ruff check --fix (#11400) 2026-01-09 07:40:58 +01:00
json_diff.yml add json_patch, json_patch_recipe and json_diff filters (#9565) 2025-01-21 20:51:21 +01:00
json_patch.py Sort imports with ruff check --fix (#11400) 2026-01-09 07:40:58 +01:00
json_patch.yml Adjust YAML in plugin docs (#10234) 2025-06-16 17:46:01 +02:00
json_patch_recipe.yml add json_patch, json_patch_recipe and json_diff filters (#9565) 2025-01-21 20:51:21 +01:00
json_query.py Use raise from in plugins (#11095) 2025-11-12 20:34:26 +01:00
keep_keys.py Reformat everything. 2025-11-01 13:46:53 +01:00
lists.py Reformat everything. 2025-11-01 13:46:53 +01:00
lists_difference.yml fixed hidden warnings from extra tests - batch 1 (#10025) 2025-04-23 21:49:20 +02:00
lists_intersect.yml fixed hidden warnings from extra tests - batch 1 (#10025) 2025-04-23 21:49:20 +02:00
lists_mergeby.py Sort imports with ruff check --fix (#11400) 2026-01-09 07:40:58 +01:00
lists_symmetric_difference.yml fixed hidden warnings from extra tests - batch 1 (#10025) 2025-04-23 21:49:20 +02:00
lists_union.yml fixed hidden warnings from extra tests - batch 1 (#10025) 2025-04-23 21:49:20 +02:00
random_mac.py Reformat everything. 2025-11-01 13:46:53 +01:00
remove_keys.py Reformat everything. 2025-11-01 13:46:53 +01:00
replace_keys.py Reformat everything. 2025-11-01 13:46:53 +01:00
reveal_ansible_type.py Reformat everything. 2025-11-01 13:46:53 +01:00
time.py Sort imports with ruff check --fix (#11400) 2026-01-09 07:40:58 +01:00
to_days.yml misc typo fix (#9812) 2025-02-28 23:10:13 +01:00
to_hours.yml misc typo fix (#9812) 2025-02-28 23:10:13 +01:00
to_ini.py Sort imports with ruff check --fix (#11400) 2026-01-09 07:40:58 +01:00
to_milliseconds.yml misc typo fix (#9812) 2025-02-28 23:10:13 +01:00
to_minutes.yml misc typo fix (#9812) 2025-02-28 23:10:13 +01:00
to_months.yml misc typo fix (#9812) 2025-02-28 23:10:13 +01:00
to_nice_yaml.yml Add filters to_yaml and to_nice_yaml (#10784) 2025-09-08 18:48:49 +02:00
to_prettytable.py Improve Python code: address unused variables (#11049) 2025-11-09 08:14:35 +01:00
to_seconds.yml misc typo fix (#9812) 2025-02-28 23:10:13 +01:00
to_time_unit.yml misc typo fix (#9812) 2025-02-28 23:10:13 +01:00
to_toml.py Add to_toml filter (#11423) 2026-01-22 06:41:49 +01:00
to_toml.yml Add to_toml filter (#11423) 2026-01-22 06:41:49 +01:00
to_weeks.yml misc typo fix (#9812) 2025-02-28 23:10:13 +01:00
to_yaml.py Add to_toml filter (#11423) 2026-01-22 06:41:49 +01:00
to_yaml.yml Add filters to_yaml and to_nice_yaml (#10784) 2025-09-08 18:48:49 +02:00
to_years.yml misc typo fix (#9812) 2025-02-28 23:10:13 +01:00
unicode_normalize.py Reformat everything. 2025-11-01 13:46:53 +01:00
version_sort.py Reformat everything. 2025-11-01 13:46:53 +01:00