patchback[bot]
f49c5f79a7
[PR #11343/e8f2b135 backport][stable-12] batch 3 - update Python idiom to 3.7 using pyupgrade ( #11352 )
...
batch 3 - update Python idiom to 3.7 using pyupgrade (#11343 )
* batch 3 - update Python idiom to 3.7 using pyupgrade
* add changelog frag
* bring back sanity
* adjust test
* Apply suggestions from code review
(cherry picked from commit e8f2b135ba )
Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
2025-12-30 22:43:24 +01:00
patchback[bot]
93d23cfef6
[PR #11119/41923e43 backport][stable-12] fix ruff case SIM103 ( #11132 )
...
fix ruff case SIM103 (#11119 )
* fix ruff case SIM103
* add changelog frag
(cherry picked from commit 41923e43bd )
Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
2025-11-12 21:32:10 +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
Alexei Znamensky
0ef2235929
modules bc*: use f-strings ( #10945 )
...
* modules bc*: use f-strings
* no quotes or backticks inside f-strs
* add changelog frag
* rename chglof frag file
* rename chglof frag file
* copr: re-applied change maintain original logic
2025-10-25 01:45:40 +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
5e2ffb845f
doc style adjustments: modules [cd]* ( #10397 )
...
* doc style adjustments: modules c*
* doc style adjustments: modules d*
* Update plugins/modules/consul_agent_check.py
Co-authored-by: Felix Fontein <felix@fontein.de>
---------
Co-authored-by: Felix Fontein <felix@fontein.de>
2025-07-13 21:03:09 +00:00
Aditya Putta
731f0be3f4
Configure LUKS encrypted volume using crypttab ( #10333 )
2025-07-12 22:28:57 +12:00
Alexei Znamensky
682a89cdf5
remove unnecessary brackets in conditions ( #10328 )
...
* remove unnecessary brackets in conditions
* add changelog frag
2025-07-03 06:46:50 +02:00
Abhijeet Kasurde
1936fe5181
crypttab: removes jijna delimiters from example using when ( #10079 )
...
The current example includes extra jinja delimiters which
result in double-interpretation of the statement.
Fixes : #10078
Signed-off-by: Abhijeet Kasurde <Akasurde@redhat.com>
2025-04-29 22:18:15 +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
43599c6850
c*.py: normalize docs ( #9418 )
...
* c*.py: normalize docs
* fix copy/paste mistake
* Apply suggestions from code review
Co-authored-by: Felix Fontein <felix@fontein.de>
---------
Co-authored-by: Felix Fontein <felix@fontein.de>
2024-12-27 14:29:05 +01:00
Felix Fontein
6fc1df9b83
Use semantic markup (modules a-c) ( #6671 )
...
* Use semantic markup.
* E() now works better.
2023-06-15 15:46:33 +02:00
Felix Fontein
9de145482b
Add attributes to various basic modules ( #5964 )
...
* Add attributes to various basic modules.
* Check and diff mode for pam_limits was added in #830 .
2023-02-20 17:28:47 +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