Felix Fontein
236b9c0e04
Sort imports with ruff check --fix ( #11400 )
...
Sort imports with ruff check --fix.
2026-01-09 07:40:58 +01:00
Alexei Znamensky
543329cecb
batch 4 - update Python idiom to 3.7 using pyupgrade ( #11344 )
...
* batch 4 - update Python idiom to 3.7 using pyupgrade
* add changelog frag
* bring back sanity
* remove unused import
2025-12-30 16:15:48 +01:00
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
Felix Fontein
340ff8586d
Reformat everything.
2025-11-01 13:46:53 +01:00
Alexei Znamensky
af246f8de3
modules s[f-z]*: use f-strings ( #10977 )
...
* modules s[f-z]*: use f-strings
* add changelog frag
2025-10-26 22:35:30 +13:00
Felix Fontein
8f8a0e1d7c
Fix __future__ imports, __metaclass__ = type, and remove explicit UTF-8 encoding statement for Python files ( #10886 )
...
* Adjust all __future__ imports:
for i in $(grep -REl "__future__.*absolute_import" plugins/ tests/); do
sed -e 's/from __future__ import .*/from __future__ import annotations/g' -i $i;
done
* Remove all UTF-8 encoding specifications for Python source files:
for i in $(grep -REl '[-][*]- coding: utf-8 -[*]-' plugins/ tests/); do
sed -e '/^# -\*- coding: utf-8 -\*-/d' -i $i;
done
* Remove __metaclass__ = type:
for i in $(grep -REl '__metaclass__ = type' plugins/ tests/); do
sed -e '/^__metaclass__ = type/d' -i $i;
done
2025-10-10 19:52:04 +02:00
Alexei Znamensky
3bb7a77b14
arg_spec adjustments: modules [o-s]* ( #10512 )
...
* arg_spec adjustments: modules [o-s]*
* add changelog frag
2025-07-31 22:46:32 +02:00
Alexei Znamensky
c1bd461173
doc style adjustments: modules s* ( #10480 )
...
* doc style adjustments: modules s*
* adjust comment indentation
* remove empty RETURN section in stacki_host
* spectrum_model_attrs: improve formatting of example
* Apply suggestions from code review
Co-authored-by: Felix Fontein <felix@fontein.de >
* Update plugins/modules/spotinst_aws_elastigroup.py
Co-authored-by: Felix Fontein <felix@fontein.de >
* Update plugins/modules/swdepot.py
Co-authored-by: Felix Fontein <felix@fontein.de >
---------
Co-authored-by: Felix Fontein <felix@fontein.de >
2025-07-27 15:59:26 +02:00
Alexei Znamensky
0de39a6f47
use open() as context manager ( #9579 )
...
* use open() as context manager
* add changelog frag
2025-01-21 20:50:44 +01:00
Alexei Znamensky
695b1abc8d
st*: style adjustments ( #9516 )
...
* st*: style adjustments
* lien lenght adjustments
2025-01-03 20:00:45 +01:00
Alexei Znamensky
4b23e5ecff
s[o-y]*: normalize docs ( #9351 )
...
* s[o-y]*: normalize docs
* Apply suggestions from code review
Co-authored-by: Felix Fontein <felix@fontein.de >
* Update plugins/modules/spectrum_model_attrs.py
---------
Co-authored-by: Felix Fontein <felix@fontein.de >
2024-12-25 09:48:22 +01:00
Alexei Znamensky
26df6c7657
use dict comprehension in plugins, part 3 ( #8833 )
...
* use dict comprehension in plugins, part 3
* add changelog frag
2024-09-08 14:22:37 +02:00
Vlad Glagolev
f7176df480
sorcery: update only specified grimoires ( #7091 )
...
* sorcery: update only specified grimoires
* Update plugins/modules/sorcery.py
Co-authored-by: Felix Fontein <felix@fontein.de >
* Add a flag to omit listing new repositories before add/remove
* No need to append an empty string
---------
Co-authored-by: Felix Fontein <felix@fontein.de >
2023-08-12 09:56:56 +02:00
Vlad Glagolev
d74425580b
Add grimoire management to sorcery module ( #7012 )
...
* Add grimoire management to sorcery module
* Add changelog fragment
* Bump copyright year
* Separate update_cache and latest state
* Apply suggestions from code review
Co-authored-by: Felix Fontein <felix@fontein.de >
* Add note on latest state and cache_update link
* Unblock execution of multiple stages
* Update plugins/modules/sorcery.py
Co-authored-by: Felix Fontein <felix@fontein.de >
* Update Codex logic to match Sorcery
---------
Co-authored-by: Felix Fontein <felix@fontein.de >
2023-08-09 16:11:46 +02:00
Felix Fontein
eff0cb0ed9
Use semantic markup (modules r-s) ( #6683 )
...
* Use semantic markup.
* Use 'ignore:' for alias reference.
* Ignore sanity errors for older ansible-core versions.
* Improve markup for RHSM modules.
Co-authored-by: Pino Toscano <ptoscano@redhat.com >
* 'ignore:' is no longer needed.
* E() now works better.
---------
Co-authored-by: Pino Toscano <ptoscano@redhat.com >
2023-06-15 15:48:51 +02:00
Alexei Znamensky
4c0eff02e5
sorcery: moved import to top ( #6525 )
...
* sorcery: moved import to top
* add changelog frag
* Update changelogs/fragments/6525-sorcery-import.yaml
Co-authored-by: Vlad Glagolev <vaygr@users.noreply.github.com >
---------
Co-authored-by: Vlad Glagolev <vaygr@users.noreply.github.com >
2023-05-29 18:54:35 +02:00
Felix Fontein
4b262e39f0
Add attributes to more modules (4/4) ( #5968 )
...
* Add attributes to more modules.
* Adjust indentation.
Co-authored-by: Kristian Heljas <11139388+kristianheljas@users.noreply.github.com >
---------
Co-authored-by: Kristian Heljas <11139388+kristianheljas@users.noreply.github.com >
2023-02-20 17:30:53 +01:00
Felix Fontein
b531ecdc9b
Unflatmap community.general ( #5461 )
...
* Move files.
* Update imports and references.
* Move wrongly placed files.
* Reverse redirects, deprecate long → short name redirects.
* Simplify contribution guidelines for new modules.
* Rewrite BOTMETA.
* Add changelog fragment.
* Fix ignore.txt files.
2022-11-02 20:42:29 +00:00
Felix Fontein
7743ecd776
Replace symlinks with meta/runtime.yml redirects. ( #4562 )
2022-04-26 20:33:13 +02:00
Brian Coca
8f90360d49
make collection usable with current ansible vers ( #9 )
2020-03-11 14:10:38 +00:00