Felix Fontein
f758d94fba
Add type hints and type checking ( #885 )
...
* Enable basic type checking.
* Fix first errors.
* Add changelog fragment.
* Add types to module_utils and plugin_utils (without module backends).
* Add typing hints for acme_* modules.
* Add typing to X.509 certificate modules, and add more helpers.
* Add typing to remaining module backends.
* Add typing for action, filter, and lookup plugins.
* Bump ansible-core 2.19 beta requirement for typing.
* Add more typing definitions.
* Add typing to some unit tests.
2025-05-11 18:00:11 +02:00
Felix Fontein
65872e884f
Remove Python 2 specific code ( #877 )
...
* Get rid of Python 2 special handling.
* Get rid of more Python 2 specific handling.
* Stop using six.
* ipaddress is part of the standard library since Python 3.
* Add changelog.
* Fix import.
* Remove unneeded imports.
2025-05-01 16:21:13 +02:00
Felix Fontein
641e63b08c
Replace % and str.format() with f-strings ( #875 )
...
* Replace % and str.format() with f-strings.
* Apply suggestions from review.
2025-05-01 11:50:10 +02:00
Felix Fontein
d8f838c365
Modernize some Python constructs ( #876 )
...
* Update __future__ import, remove __metaclass__ assignment.
* Removing obsolete encoding comment.
* Remove unneccessary object inheritance.
2025-05-01 10:36:59 +02:00
Felix Fontein
f73a1ce590
Drop compatibility with older versions. ( #872 )
2025-04-28 21:45:42 +02:00
Felix Fontein
aec1826c34
Reformat everything with black.
...
I had to undo the u string prefix removals to not drop Python 2 compatibility.
That's why black isn't enabled in antsibull-nox.toml yet.
2025-04-28 10:48:00 +02:00
Felix Fontein
aa9e7b6dfb
Add isort and flake8 to CI ( #869 )
...
* Run isort.
* Clean up unused assignments.
* Add flake8 linting step.
2025-04-27 22:18:29 +02:00
Felix Fontein
70c4585b88
Fix deprecation handling. ( #572 )
2023-02-09 15:36:23 +01:00
Felix Fontein
aea3713484
Remove unneccessary imports ( #569 )
...
* Remove unneccessary imports.
* Add noqas.
* Add comment which name is actually ignored.
2023-02-09 11:57:54 +01:00
Felix Fontein
b3f589df62
Action plugin support code: ensure compatibility with newer versions of ansible-core ( #515 )
...
* Only access C.STRING_CONVERSION_ACTION for old ansible-base / Ansible versions.
* Always use self.__xxx instead of xxx directly.
2022-09-23 07:02:46 +02:00
Felix Fontein
fd1263c9aa
Fix some new linting errors ( #499 )
...
* Fix some new linting errors.
* More linting errors.
ci_complete
2022-08-12 08:34:51 +02:00
Felix Fontein
6bf3ef47e1
Move licenses to LICENSES/, use SPDX-License-Identifier, mention all licenses in galaxy.yml ( #491 )
...
* Add SPDX license identifiers, mention all licenses in galaxy.yml.
* Add default copyright headers.
* Add headers for documents.
* Fix/add more copyright statements.
* Add copyright / license info for vendored code.
* Add extra sanity test.
* Add changelog fragment.
* Comment PSF-2.0 license out in galaxy.yml for now.
* Remove colon after 'Copyright'.
* Avoid colon after 'Copyright' in lint script.
* Mention correct filename.
* Add BSD-3-Clause.
* Improve lint script.
* Update README.
* Symlinks...
2022-07-21 07:27:26 +02:00
Felix Fontein
62272296da
Small docs improvements ( #374 )
...
* Small improvements.
* Document behavior changes.
2022-01-10 12:05:09 +00:00
Felix Fontein
9658a34605
Replace ansible.module_utils._text by ansible.module_utils.common.text.converters. ( #253 )
2021-06-26 13:45:28 +02:00
Felix Fontein
8de9376a10
Make action_module plugin utils compatible with latest changes in ansible-core 2.11.0b3 ( #202 )
...
* Make compatible with latest changes in ansible-core 2.11.0b3.
* Add missing import.
* Use correct class.
2021-03-20 23:36:48 +01:00
Felix Fontein
c7268c7fc4
Fix bug in AnsibleActionModule. ( #141 )
2020-11-08 17:28:44 +01:00
Felix Fontein
ec7e4916e5
Move action_module from module_utils to plugin_utils ( #134 )
...
* Move action_module from module_utils to plugin_utils.
* ci_complete
2020-11-03 09:21:35 +01:00