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
5b5f7e9e64
batch 1 - update Python idiom to 3.7 using pyupgrade ( #11341 )
...
* batch 1 - update Python idiom to 3.7 using pyupgrade
* add changelog frag
* add changelog frag
2025-12-30 16:15:24 +01:00
Felix Fontein
c7f6a28d89
Add basic typing for module_utils ( #11222 )
...
* Add basic typing for module_utils.
* Apply some suggestions.
Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
* Make pass again.
* Add more types as suggested.
* Normalize extra imports.
* Add more type hints.
* Improve typing.
* Add changelog fragment.
* Reduce changelog.
* Apply suggestions from code review.
Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
* Fix typo.
* Cleanup.
* Improve types and make type checking happy.
* Let's see whether older Pythons barf on this.
* Revert "Let's see whether older Pythons barf on this."
This reverts commit 9973af3dbe .
* Add noqa.
---------
Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
2025-12-01 20:40:06 +01:00
Felix Fontein
340ff8586d
Reformat everything.
2025-11-01 13:46:53 +01:00
Felix Fontein
0c5466de47
Cleanup: remove unicode prefix, remove explicit inheritance from object ( #11015 )
...
* Address UP025: remove unicode literals from strings.
* Address UP004: class inherits from 'object'.
2025-10-30 20:17:10 +01:00
Alexei Znamensky
d86340b9d3
modules a*: use f-strings ( #10942 )
...
* modules a*: use f-strings
* add changelog frag
* add changelog frag
* rename chglof frag file
2025-10-23 06:50:32 +02:00
Alexei Znamensky
b85e263466
use f-strings in module utils ( #10901 )
...
* use f-strings in module utils
* Apply suggestions from code review
Co-authored-by: Felix Fontein <felix@fontein.de>
* remove unused imports
---------
Co-authored-by: Felix Fontein <felix@fontein.de>
2025-10-11 11:43:43 +02: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
cb84fa740a
remove extra brackets when params are a given by a comprehension ( #10712 )
...
* remove extra brackets when function params are a given by a comprehension
* add changelog frag
2025-08-23 19:14:39 +02:00
Alexei Znamensky
389dfe9f09
manageiq_tags_info: new module ( #5368 )
...
* manageiq_tags: refactor ManageIQTags class out to utils
* add manageiq_tags_info module
* refactor query_resource_id as a method in ManageIQ
* minor adjustments
* fix comments from PR
* rollback register result in examples
* add basic docs for return value
2022-10-23 11:33:07 +02:00
Alexei Znamensky
32f9d78fa3
manageiq_policies_info: new module ( #5321 )
...
* manageiq_provider_info: new module
* fix reference to manageiq.module
* add missing alias in suboption
* fix filename in botmeta
* Update plugins/modules/remote_management/manageiq/manageiq_policies_info.py
Co-authored-by: Felix Fontein <felix@fontein.de>
* Update plugins/modules/remote_management/manageiq/manageiq_policies_info.py
Co-authored-by: Felix Fontein <felix@fontein.de>
* fix description of parameters
* Update plugins/modules/remote_management/manageiq/manageiq_policies_info.py
Co-authored-by: Felix Fontein <felix@fontein.de>
* Update plugins/modules/remote_management/manageiq/manageiq_policies_info.py
Co-authored-by: Felix Fontein <felix@fontein.de>
* remove change applied on the wrong branch
* fix the module name in metadata files
* Update plugins/modules/remote_management/manageiq/manageiq_policies_info.py
Co-authored-by: Felix Fontein <felix@fontein.de>
* adjust RETURN documentation
* adjust RETURN documentation indentation
* Update plugins/modules/remote_management/manageiq/manageiq_policies_info.py
Co-authored-by: Felix Fontein <felix@fontein.de>
* Update plugins/modules/remote_management/manageiq/manageiq_policies_info.py
Co-authored-by: Felix Fontein <felix@fontein.de>
* Update plugins/modules/remote_management/manageiq/manageiq_policies_info.py
Co-authored-by: Felix Fontein <felix@fontein.de>
Co-authored-by: Felix Fontein <felix@fontein.de>
2022-10-12 10:27:21 +02:00
Felix Fontein
123c7efe5e
Move licenses to LICENSES/, run add-license.py, add LICENSES/MIT.txt ( #5065 )
...
* Move licenses to LICENSES/, run add-license.py, add LICENSES/MIT.txt.
* Replace 'Copyright:' with 'Copyright'
sed -i 's|Copyright:\(.*\)|Copyright\1|' $(rg -l 'Copyright:')
Co-authored-by: Maxwell G <gotmax@e.email>
2022-08-05 12:28:29 +02:00
Felix Fontein
0be68bf04b
Add simplified_bsd.txt license file ( #4759 )
...
* Add simplified_bsd.txt and adjust references.
* Add changelog.
2022-06-02 07:30:06 +02:00
Alexei Znamensky
771e9de010
mass-added the utf-8 marker ( #3163 )
...
* added the utf-8 marker
* fixed the utf-8 marker where it was missde before
2021-08-08 10:40:22 +02:00
Abhijeet Kasurde
832dd55144
sanity: Add future boilerplate ( #573 )
...
* sanity: Add future boilerplate
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
* Module Utils
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
* Scripts
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
* sanity: Add future boilerplate
* Tests
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
* CI failure
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
2020-06-24 21:50:36 +02:00
Ansible Core Team
aebc1b03fd
Initial commit
2020-03-09 09:11:07 +00:00