Felix Fontein
340ff8586d
Reformat everything.
2025-11-01 13:46:53 +01: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
Felix Fontein
47e8a3c193
ansible-core 2.20: avoid deprecated functionality ( #10687 )
...
Avoid deprecated functionality.
2025-08-18 06:25:23 +02:00
Alexei Znamensky
580ac1e30d
fix style in plugins ( #10302 )
...
Co-authored-by: Felix Fontein <felix@fontein.de >
2025-07-02 01:15:50 +12:00
Alexei Znamensky
81e22180d1
action/become/cache/callback: adjust import __future__ for Python3 ( #9583 )
...
* action/become/cache/callback: adjust import __future__ for Python3
* add changelog frag
* remove metaclass
* adjust chglog
* adjust chglog
2025-01-20 19:36:21 +01:00
Alexei Znamensky
29e3226718
normalize docs in become plugins ( #9452 )
...
* normalize docs in become plugins
Normalize doc blocks for plugins
* adjustments
2024-12-29 20:23:59 +01:00
Thomas Sjögren
f82e7a7b83
lint and fix polkit examples ( #8381 )
...
* lint and fix polkit examples
Signed-off-by: Thomas Sjögren <konstruktoid@users.noreply.github.com >
* add changelog fragment
Signed-off-by: Thomas Sjögren <konstruktoid@users.noreply.github.com >
* remove changelog fragment
Signed-off-by: Thomas Sjögren <konstruktoid@users.noreply.github.com >
---------
Signed-off-by: Thomas Sjögren <konstruktoid@users.noreply.github.com >
2024-05-19 20:50:41 +02:00
Thomas Sjögren
d347bf5fa0
add systemd run0 as a become method ( #8306 )
...
* add systemd run0 as a become method
Signed-off-by: Thomas Sjögren <konstruktoid@users.noreply.github.com >
* add fragment
Signed-off-by: Thomas Sjögren <konstruktoid@users.noreply.github.com >
* remove space after hyphen
Signed-off-by: Thomas Sjögren <konstruktoid@users.noreply.github.com >
* replace ansible with collection version
Signed-off-by: Thomas Sjögren <konstruktoid@users.noreply.github.com >
* update version_added and remove changelog fragment
Signed-off-by: Thomas Sjögren <konstruktoid@users.noreply.github.com >
* update formating
Signed-off-by: Thomas Sjögren <konstruktoid@users.noreply.github.com >
* add types
Signed-off-by: Thomas Sjögren <konstruktoid@users.noreply.github.com >
* slim super()
Signed-off-by: Thomas Sjögren <konstruktoid@users.noreply.github.com >
* imports must appear below docs
Signed-off-by: Thomas Sjögren <konstruktoid@users.noreply.github.com >
* add initial unit test
Signed-off-by: Thomas Sjögren <konstruktoid@users.noreply.github.com >
* update unit tests
Signed-off-by: Thomas Sjögren <konstruktoid@users.noreply.github.com >
---------
Signed-off-by: Thomas Sjögren <konstruktoid@users.noreply.github.com >
2024-05-11 16:53:44 +02:00