Felix Fontein
6b5d76bdee
Adjust 'report this' messages to only report if the latest version still has this problem. ( #1173 )
2025-10-16 17:41:11 +02:00
Felix Fontein
3ff2cfe615
Drop support for docker-py. ( #1171 )
2025-10-15 21:55:07 +02:00
Felix Fontein
0646e52bae
Python code modernization, 7/n ( #1170 )
...
* Address abstract-method.
* Fix broken signature.
2025-10-15 21:27:20 +02:00
Felix Fontein
04fa3fe352
Ansible-core devel's version was bumped to 2.21.0.dev0, add stable-2.20 to CI ( #1168 )
...
* Ansible-core devel's version was bumped to 2.21.0.dev0.
* Add stable-2.20 to CI.
2025-10-15 11:39:45 +00:00
Felix Fontein
597162b153
Avoid Python 2 compat (conditional) imports. ( #1167 )
2025-10-13 22:31:59 +02:00
Felix Fontein
6f9ebc3f14
Fix issues with pylint 4.0.
2025-10-13 22:09:31 +02:00
Felix Fontein
16b5bfa27b
Disable type checking for now.
2025-10-12 22:32:40 +02:00
Felix Fontein
17e30adb93
selectors is now part of stdlib. ( #1166 )
2025-10-12 22:00:51 +02:00
Felix Fontein
c75aa5dd64
Python code modernization, 5/n ( #1165 )
...
* Address raise-missing-from.
* Address simplifiable-if-expression.
* Address unnecessary-dunder-call.
* Address unnecessary-pass.
* Address use-list-literal.
* Address unused-variable.
* Address use-dict-literal.
2025-10-12 16:02:27 +02:00
Felix Fontein
cad22de628
Python code modernization, 4/n ( #1162 )
...
* Address attribute-defined-outside-init.
* Address broad-exception-raised.
* Address broad-exception-caught.
* Address consider-iterating-dictionary.
* Address consider-using-dict-comprehension.
* Address consider-using-f-string.
* Address consider-using-in.
* Address consider-using-max-builtin.
* Address some consider-using-with.
* Address invalid-name.
* Address keyword-arg-before-vararg.
* Address line-too-long.
* Address no-else-continue.
* Address no-else-raise.
* Address no-else-return.
* Remove broken dead code.
* Make consider-using-f-string changes compatible with older Python versions.
* Python 3.11 and earlier apparently do not like multi-line f-strings.
2025-10-11 23:06:50 +02:00
Felix Fontein
33c8a49191
Fix crashes due to wrong names. ( #1161 )
2025-10-11 15:29:14 +02:00
Felix Fontein
892e9d9cbd
Reorganize imports due to https://github.com/ansible-community/antsibull-nox/pull/136 .
2025-10-10 21:19:28 +02:00
Felix Fontein
f7e976f3da
Avoid losing data from events if multiple arrive at the same time. ( #1158 )
2025-10-10 20:21:21 +02:00
Felix Fontein
e8ec22d3b1
Python code modernization, 3/n ( #1157 )
...
* Remove __metaclass__ = type.
for i in $(grep -REl '__metaclass__ = type' plugins/ tests/); do
sed -e '/^__metaclass__ = type/d' -i $i;
done
* Remove super arguments, and stop inheriting from object.
2025-10-10 08:11:58 +02:00
Felix Fontein
741c318b1d
Python code modernization, 2/n ( #1156 )
...
* 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
* Reformat.
2025-10-09 20:46:48 +02:00
Felix Fontein
a3efa26e2e
Address some pylint issues ( #1155 )
...
* Address cyclic-import.
* Address redefined-builtin.
* Address redefined-argument-from-local.
* Address many redefined-outer-name.
* Address pointless-string-statement.
* No longer needed due to separate bugfix.
* Address useless-return.
* Address possibly-used-before-assignment.
* Add TODOs.
* Address super-init-not-called.
* Address function-redefined.
* Address unspecified-encoding.
* Clean up more imports.
2025-10-09 20:11:36 +02:00
Felix Fontein
db09affaea
Fix isort config.
2025-10-07 23:00:42 +02:00
Felix Fontein
ec5f7682a1
Prevent loss of data. ( #1152 )
2025-10-07 22:05:05 +02:00
Felix Fontein
0acb773127
Install more deps for type checking.
2025-10-07 19:40:32 +02:00
Felix Fontein
acf18f0ade
Add more CI checks ( #1150 )
...
* Enable mypy.
* Add flake8.
* Add pylint with a long list of ignores to be removed.
2025-10-07 19:37:16 +02:00
Felix Fontein
449b37e1c9
Fix docker_container_exec's detach=true. ( #1145 )
2025-10-07 18:49:20 +02:00
Felix Fontein
54c2e49fdf
Fix diff for plugin options. ( #1146 )
2025-10-07 18:31:27 +02:00
salty
ebb8569b5f
docker_container: add driver_opts and gw_priority ( #1143 )
...
closes #1142
2025-10-07 18:26:25 +02:00
Felix Fontein
d0f4ef57a4
Forgot to adjust antsibull-nox config.
2025-10-07 07:49:49 +02:00
Felix Fontein
117271579e
Make all doc fragments, module utils, and plugin utils private ( #1144 )
...
* Make all doc fragments, module utils, and plugin utils private.
* Remove some unused and no longer needed imports.
This hopefully also fixes the CI issues, which do not happen locally for me...
* Fix formatting.
* Try to make CI happy, again.
* Fix imports.
* Lint.
2025-10-07 07:32:33 +02:00
Felix Fontein
bb39e67c8f
Make CI pass; add black and isort to CI; add reformat commit to .git-blame-ignore-revs.
2025-10-06 18:57:33 +02:00
Felix Fontein
d65d37e9e9
Reformat code with black and isort.
2025-10-06 18:34:59 +02:00
Felix Fontein
f45232635c
Python code modernization, 1/n ( #1141 )
...
* Remove unicode text prefixes.
* Replace str.format() uses with f-strings.
* Replace % with f-strings, and do some cleanup.
* Fix wrong variable.
* Avoid unnecessary string conversion.
2025-10-06 18:30:54 +02:00
Felix Fontein
1f2817fa20
Prepare 5.0.0 ( #1123 )
...
* Bump version to 5.0.0-a1.
* Drop support for ansible-core 2.15 and 2.16.
* Remove Python 2 and early Python 3 compatibility.
2025-10-05 20:22:50 +02:00
Felix Fontein
b9cf9015c4
Add stable-4 to CI.
2025-10-05 17:41:40 +02:00
Felix Fontein
d757294540
Release 4.8.1.
2025-10-05 16:30:40 +02:00
Felix Fontein
626426c199
Prepare 4.8.1.
2025-10-05 16:29:41 +02:00
Felix Fontein
251e4eca49
Remove remaining usages of ansible.module_utils.six. ( #1140 )
2025-10-05 16:17:50 +02:00
Felix Fontein
ebe42308cc
Replace ansible.module_utils.six with own module utils in some cases ( #1138 )
...
* Replace ansible.module_utils.six with own module utils in some cases.
* Add ignore.txt entires.
2025-10-04 23:45:27 +02:00
Felix Fontein
82b49c7cf2
Fix wrong replacements. ( #1139 )
2025-10-04 23:18:11 +02:00
Felix Fontein
1902e0fdf2
Avoid six in plugin code. ( #1137 )
2025-10-04 21:51:59 +02:00
Felix Fontein
de9794ffe8
The next expected release will be 4.9.0.
2025-10-03 22:53:57 +02:00
Felix Fontein
8723784cf0
Release 4.8.0.
2025-10-03 22:30:21 +02:00
Felix Fontein
82b3184605
Another try to add RHEL 10 to CI. ( #1136 )
2025-10-03 21:16:18 +02:00
Felix Fontein
f8ea3fcba3
Prepare 4.8.0.
2025-09-29 22:50:37 +02:00
Felix Fontein
fd011d3871
Support missing fields and missing types in mounts. ( #1134 )
2025-09-29 22:35:07 +02:00
Felix Fontein
8e2056fcb1
Only upload code coverage data for scheduled CI runs. ( #1135 )
2025-09-29 22:34:57 +02:00
Felix Fontein
a3093604fa
Put all integration test sessions into the nox config. ( #1133 )
...
This includes ones for ansible-core versions that only run with AZP,
and includes remote sessions that won't work with GHA but require AZP
also for older ansible-core versions.
2025-09-29 20:49:06 +02:00
Felix Fontein
c9c420c036
CI: Move ansible-core 2.16 from AZP to GHA ( #1132 )
...
* Move ansible-core 2.16 to EOL CI.
* Remove no longer relevant EOL CI badge.
* CentOS 7 does not work in GHA.
2025-09-27 12:27:44 +02:00
Felix Fontein
1e038c072f
CI: replace felixfontein/ansible-test-gh-action@main with antsibull-nox. ( #1131 )
2025-09-27 11:35:25 +02:00
Felix Fontein
ad7397a332
Add repository configuration to antsibull-nox.toml.
2025-09-26 06:58:05 +02:00
Felix Fontein
5e58fee998
Disable Ubuntu 24.04 for now since it's a lot slower thna RHEL 9.6.
2025-09-16 06:55:47 +02:00
Felix Fontein
2b5c06da20
CI: Start using Ubuntu VMs instead of RHEL VMs ( #1128 )
...
* Start using Ubuntu VMs instead of RHEL VMs.
* Use correct Python executable.
* Fix starting podman on non-RHEL systems.
2025-09-14 23:27:52 +02:00
Felix Fontein
93d165e10b
Restrict cffi on Python 2. ( #1126 )
2025-09-12 19:58:48 +02:00
dependabot[bot]
3e2b149dc2
Bump actions/setup-go from 5 to 6 in the ci group ( #1124 )
...
Bumps the ci group with 1 update: [actions/setup-go](https://github.com/actions/setup-go ).
Updates `actions/setup-go` from 5 to 6
- [Release notes](https://github.com/actions/setup-go/releases )
- [Commits](https://github.com/actions/setup-go/compare/v5...v6 )
---
updated-dependencies:
- dependency-name: actions/setup-go
dependency-version: '6'
dependency-type: direct:production
update-type: version-update:semver-major
dependency-group: ci
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-09-08 18:50:34 +02:00