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
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
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
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
de0ec1f739
Add Apache 2.0 license; simplify and standardize license headers ( #478 )
...
* Add Apache 2.0 license for Apache 2.0 licensed parts.
* Unify license headers.
* Move additional licenses to licenses/.
* Revert "Move additional licenses to licenses/."
This reverts commit c12b22de1c .
2022-06-17 08:20:40 +02:00
Felix Fontein
9a096dd146
Refactor module_utils/crypto.py ( #27 )
...
* Refactor module_utils/crypto.py: split up into multiple smaller modules
* Remove superfluous files.
* Fix sanity errors.
* Move CRL entry dumping code to module_utils.
* Move obj2txt usage from CRL modules to module_utils/crpyto/cryptography_crl.
* Move generic I/O functions to plugins/module_utils/io.py.
* Add helper method for retrieving serial number of certificate.
* Add compatibility code into __init__.py.
* Fix syntax error, and add ignore.txt entries for non-empty __init__.
2020-05-12 11:19:42 +02:00