Alexei Znamensky
a9a4f89033
remove required=false from docs ( #11055 )
2025-11-09 08:27:06 +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
cf663c6e95
dnf_versionlock: docs and comments for Python < 3.6 ( #10984 )
2025-10-26 21:23:58 +13:00
Alexei Znamensky
a3987c9844
modules def*: use f-strings ( #10947 )
...
* modules def*: use f-strings
* remove !s from f-strings
* add changelog frag
2025-10-23 22:12:10 +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
f1f167e3fc
dnf_versionlock: minor refactor ( #10783 )
...
* dnf_versionlock: minor refactor
* Python 2 does not appreciate clever syntax
* Update plugins/modules/dnf_versionlock.py
* Update plugins/modules/dnf_versionlock.py
* rollback raw patterns adjustment
2025-09-03 21:38:21 +02:00
Felix Fontein
bc4d06ef34
Fix dnf_versionlock examples ( #10428 )
...
Fix dnf_versionlock examples.
2025-07-18 23:03:10 +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
Felix Fontein
1956815884
docs: add notes that dnf_* modules do not work with dnf5 ( #10238 )
...
* Add notes that dnf_* modules do not work with dnf5.
* Apply suggestions from code review.
Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
---------
Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
2025-06-15 11:24:30 +02:00
Abhijeet Kasurde
86dea88cb6
dnf_versionlock: add support for Fedora 41 and dnf5 ( #9846 )
...
Fixes : #9556
Signed-off-by: Abhijeet Kasurde <Akasurde@redhat.com>
2025-03-09 17:23:40 +01:00
Alexei Znamensky
df42f29e53
[def]*.py: normalize docs ( #9401 )
...
* [def]*.py: normalize docs
* Update plugins/modules/datadog_monitor.py
Co-authored-by: Felix Fontein <felix@fontein.de>
---------
Co-authored-by: Felix Fontein <felix@fontein.de>
2024-12-26 21:53:20 +01:00
Felix Fontein
2ed82e0318
Use semantic markup (modules d-g) ( #6672 )
...
* Use semantic markup.
* 'ignore:' is no longer needed.
* E() now works better.
2023-06-15 15:46:44 +02:00
Felix Fontein
3ec2fde2c6
Add attributes to package manager modules ( #5954 )
...
Add attributes to package manager modules.
2023-02-24 09:25:20 +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
Roberto Moreda
73acdaa489
dnf_versionlock: new module ( #3552 )
...
* dnf_versionlock: new module
* dnf_versionlock: fix style in doc
* dnf_versionlock: use check_rc in run_command
* dnf_versionlock: fix style and typos in doc
2021-10-27 22:36:48 +02:00