patchback[bot]
b72e38c909
[PR #11115/58bb1e7c backport][stable-12] fix ruff case B007 ( #11131 )
...
fix ruff case B007 (#11115 )
* fix ruff case B007
* rollback inventory/iocage
* re-do the fix in inventory/iocage
* add cases in tests/unit/plugins
* rollback plugins/module_utils/memset.py
* rollback extraneous changes in plugins/modules/xcc_redfish_command.py
* add changelog frag
(cherry picked from commit 58bb1e7c04 )
Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
2025-11-12 21:58:36 +01:00
patchback[bot]
8cd80d94a0
[PR #11049/396f467b backport][stable-12] Improve Python code: address unused variables ( #11058 )
...
Improve Python code: address unused variables (#11049 )
* Address F841 (unused variable).
* Reformat.
* Add changelog fragment.
* More cleanup.
* Remove trailing whitespace.
* Readd removed code as a comment with TODO.
(cherry picked from commit 396f467bbb )
Co-authored-by: Felix Fontein <felix@fontein.de>
2025-11-09 09:59:42 +01:00
Felix Fontein
340ff8586d
Reformat everything.
2025-11-01 13:46:53 +01:00
Felix Fontein
74c2c804e5
Cleanup: use super() instead of super(__class__, self) ( #11016 )
...
* Address UP008: Use super() instead of super(__class__, self).
* Linting.
2025-10-30 20:17:26 +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
Felix Fontein
6088b0cff5
CI: add type checking ( #10997 )
...
* Set up type checking with mypy.
* Make mypy pass.
* Use list() instead of sorted().
2025-10-29 17:13:38 +00:00
Felix Fontein
6cd4665412
Avoid six in plugin code ( #10873 )
...
Avoid six in plugin code.
2025-10-05 06:56:32 +02:00
Felix Fontein
d922eaebce
Callbacks: use ansible-core's version instead of trying to extract it ( #10193 )
...
* Use ansible-core's version instead of trying to extract it.
* Adjust tests.
2025-06-02 20:45:18 +02: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
d887930e49
normalize docs in callback plugins ( #9455 )
...
* normalize docs in callback plugins
Normalize doc blocks for plugins
* Apply suggestions from code review
Co-authored-by: Felix Fontein <felix@fontein.de>
---------
Co-authored-by: Felix Fontein <felix@fontein.de>
2024-12-29 20:31:59 +01:00
Alexei Znamensky
c3ed2144e2
callback plugins: use f-strings ( #9321 )
...
* callback plugins: use f-strings
* add changelog frag
* manual change for few occurrences
* manual change for few occurrences
* adjustment from review
* adjustment from review
* adjustment from review
* Update plugins/callback/splunk.py
Co-authored-by: Felix Fontein <felix@fontein.de>
* replace str templating with JSON templating
---------
Co-authored-by: Felix Fontein <felix@fontein.de>
2024-12-24 12:00:10 +01:00
Iuri de Silvio
8d886b42ec
Close elastic APM client to release connections ( #7517 )
...
* Close elastic APM client to release connections
* Changelog fragment
2023-11-15 22:07:24 +01:00
Felix Fontein
496bf27b5c
Fix copyright lines (make sure 'Copyright' is there). ( #5083 )
2022-08-05 22:12:10 +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
Victor Martinez
18f8195983
[callback][elastic] enrich stacktrace errors ( #3556 )
...
* [callback][elastic] enrich stacktrace errors
* [callback][elastic] add changelog fragment
2021-10-14 21:19:02 +02:00
Victor Martinez
905f4dcfa2
Add elastic callback plugin ( #3380 )
...
* Add elastic callback plugin
* Capture task failures
* Catch errors and add UTs
* Skip 3.5< python versions and install dependency
* fix lint
* Fix linting
* Fix linting
* Add botmeta
* Apply suggestions from code review
Co-authored-by: Felix Fontein <felix@fontein.de>
* It's not required
* As suggested in the code review OrderedDict has been added to the Python stdlib since version 2.7
* Update plugins/callback/elastic.py
Co-authored-by: Felix Fontein <felix@fontein.de>
Co-authored-by: Felix Fontein <felix@fontein.de>
2021-10-11 06:54:14 +02:00