Felix Fontein
b3dc06a7dd
Clean up other Python files ( #11379 )
...
* Address issues found by ruff check.
* Make mypy happy; remove some Python 2 compat code.
* Also declare port1.
2026-01-05 17:59:58 +01:00
Alexei Znamensky
266d9d3fb0
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
2025-12-30 22:50:16 +13:00
Alexei Znamensky
d549baa5e1
straight up: ruff format ( #11329 )
...
* straight up: ruff format
* Apply suggestions from code review
2025-12-28 01:36:24 +13:00
Alexei Znamensky
ebf45260ce
remove conditional code for old snakes ( #11048 )
...
* remove conditional code for old snakes
* remove conditional code for old snakes
* reformat
* add changelog frag
2025-11-08 17:21:46 +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