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
Felix Fontein 3478863ef0
Address issues reported by ruff check (#11043)
* Resolve E713 and E714 (not in/is tests).

* Address UP018 (unnecessary str call).

* UP045 requires Python 3.10+.

* Address UP007 (X | Y for type annotations).

* Address UP035 (import Callable from collections.abc).

* Address UP006 (t.Dict -> dict).

* Address UP009 (UTF-8 encoding comment).

* Address UP034 (extraneous parantheses).

* Address SIM910 (dict.get() with None default).

* Address F401 (unused import).

* Address UP020 (use builtin open).

* Address B009 and B010 (getattr/setattr with constant name).

* Address SIM300 (Yoda conditions).

* UP029 isn't in use anyway.

* Address FLY002 (static join).

* Address B034 (re.sub positional args).

* Address B020 (loop variable overrides input).

* Address B017 (assert raise Exception).

* Address SIM211 (if expression with false/true).

* Address SIM113 (enumerate for loop).

* Address UP036 (sys.version_info checks).

* Remove unnecessary UP039.

* Address SIM201 (not ==).

* Address SIM212 (if expr with twisted arms).

* Add changelog fragment.

* Reformat.
2025-11-08 17:05:21 +13:00
..
accumulate.py Reformat everything. 2025-11-01 13:46:53 +01:00
counter.py Reformat everything. 2025-11-01 13:46:53 +01:00
crc32.py Reformat everything. 2025-11-01 13:46:53 +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 Reformat everything. 2025-11-01 13:46:53 +01:00
from_ini.py Reformat everything. 2025-11-01 13:46:53 +01:00
groupby_as_dict.py Reformat everything. 2025-11-01 13:46:53 +01:00
hashids.py Reformat everything. 2025-11-01 13:46:53 +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 Reformat everything. 2025-11-01 13:46:53 +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 Address issues reported by ruff check (#11043) 2025-11-08 17:05:21 +13: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 Reformat everything. 2025-11-01 13:46:53 +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 Reformat everything. 2025-11-01 13:46:53 +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 Address issues reported by ruff check (#11043) 2025-11-08 17:05:21 +13: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 Reformat everything. 2025-11-01 13:46:53 +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 Reformat everything. 2025-11-01 13:46:53 +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_weeks.yml misc typo fix (#9812) 2025-02-28 23:10:13 +01:00
to_yaml.py Reformat everything. 2025-11-01 13:46:53 +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