patchback[bot]
b769b0bc01
[PR #11400/236b9c0e backport][stable-12] Sort imports with ruff check --fix ( #11409 )
...
Sort imports with ruff check --fix (#11400 )
Sort imports with ruff check --fix.
(cherry picked from commit 236b9c0e04 )
Co-authored-by: Felix Fontein <felix@fontein.de>
2026-01-09 19:36:52 +01:00
patchback[bot]
e0bd7e334e
[PR #11379/b3dc06a7 backport][stable-12] Clean up other Python files ( #11382 )
...
Clean up other Python files (#11379 )
* Address issues found by ruff check.
* Make mypy happy; remove some Python 2 compat code.
* Also declare port1.
(cherry picked from commit b3dc06a7dd )
Co-authored-by: Felix Fontein <felix@fontein.de>
2026-01-05 18:57:50 +01:00
patchback[bot]
303bac630a
[PR #11342/266d9d3f backport][stable-12] batch 2 - update Python idiom to 3.7 using pyupgrade ( #11345 )
...
batch 2 - update Python idiom to 3.7 using pyupgrade (#11342 )
* batch 2 - update Python idiom to 3.7 using pyupgrade
* Apply suggestions from code review
(cherry picked from commit 266d9d3fb0 )
Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
2025-12-30 16:00:22 +01:00
patchback[bot]
e530d2906a
[PR #11329/d549baa5 backport][stable-12] straight up: ruff format ( #11330 )
...
straight up: ruff format (#11329 )
* straight up: ruff format
* Apply suggestions from code review
(cherry picked from commit d549baa5e1 )
Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
2025-12-27 16:29:02 +01:00
patchback[bot]
caebf65948
[PR #11048/ebf45260 backport][stable-12] remove conditional code for old snakes ( #11050 )
...
remove conditional code for old snakes (#11048 )
* remove conditional code for old snakes
* remove conditional code for old snakes
* reformat
* add changelog frag
(cherry picked from commit ebf45260ce )
Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
2025-11-08 20:55:09 +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
1ab2a5f1bc
Add default license header to files which have no copyright or license header yet ( #5074 )
...
* Add default license header to files which have no copyright or license header yet.
* yml extension should have been xml...
2022-08-05 14:03:38 +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