25 Commits

Author SHA1 Message Date
Felix Fontein
e91f8ec520 CI: Install c.g from git. 2026-01-25 13:21:43 +01:00
Felix Fontein
81c3ae5d84 Use ruff check --fix instead of isort. 2025-12-25 23:27:29 +01:00
Felix Fontein
74e9abf1f6 Remove no longer necessary pin for ansible-compat. 2025-12-25 22:00:12 +01:00
Felix Fontein
5420f9baaf Cleanup with ruff check (#963)
* Implement improvements suggested by ruff check.

* Add ruff check to CI.

* Add changelog fragment.
2025-10-28 07:21:11 +01:00
Felix Fontein
59e2e73710 Avoid broken version of ansible-compat that prevents ansible-lint to work with Python 3.14. (#961) 2025-10-21 19:51:49 +02:00
Felix Fontein
c5135496c8 Add repo configuration to antsibull-nox.toml. 2025-09-26 06:55:46 +02:00
Felix Fontein
05864d366c Fix EE test names. 2025-09-06 22:33:34 +02:00
Felix Fontein
1bfee3c23b 2.19.0 has been released. 2025-08-17 21:15:32 +02:00
Felix Fontein
0636123f56 Move EE tests to nox. (#941) 2025-07-25 19:04:30 +02:00
Felix Fontein
2f7a77c84d Avoid tabs. 2025-07-06 18:08:45 +02:00
Felix Fontein
7a4d73af2e Add linting check for RST code blocks. 2025-06-18 21:48:39 +02:00
Felix Fontein
d4fa1d094a Add YAML lint config for extra docs. 2025-06-17 17:46:32 +02:00
Felix Fontein
a6b5884fc6 Also ignore keyfile3. 2025-06-04 15:06:45 +02:00
Felix Fontein
64e2b46eec Run new no-trailing-whitespace test. 2025-06-04 14:26:05 +02:00
Felix Fontein
3fd94c354a Forgot to update name of doc fragment. 2025-05-19 18:04:01 +02:00
Felix Fontein
318462fa24 Work on issues found by pylint (#896)
* Look at possibly-used-before-assignment.

* Use latest beta releases of ansible-core 2.19 for mypy and pylint.

* Look at unsupported-*.

* Look at unknown-option-value.

* Look at redefined-builtin.

* Look at superfluous-parens.

* Look at unspecified-encoding.

* Adjust to new cryptography version and to ansible-core 2.17's pylint.

* Look at super-with-arguments.

* Look at no-else-*.

* Look at try-except-raise.

* Look at inconsistent-return-statements.

* Look at redefined-outer-name.

* Look at redefined-argument-from-local.

* Look at attribute-defined-outside-init.

* Look at unused-variable.

* Look at protected-access.

* Look at raise-missing-from.

* Look at arguments-differ.

* Look at useless-suppression and use-symbolic-message-instead.

* Look at consider-using-dict-items.

* Look at consider-using-in.

* Look at consider-using-set-comprehension.

* Look at consider-using-with.

* Look at use-dict-literal.
2025-05-18 00:57:28 +02:00
Felix Fontein
990b40df3e Add pylint (#892)
* Move mypy/flake8/isort config files to more 'natural' places.

* Add pylint.

* Look at no-member.

* Look at pointless-* and unnecessary-pass.

* Look at useless-*.

* Lint.
2025-05-17 16:45:37 +02:00
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
8156468898 Add ansible-lint to CI (#886)
* Enable ansible-lint.

* Fix broken task name.

* Fix command-instead-of-shell instances.

* Clean up tasks to eliminate command-instead-of-module.

* Skip yaml errors.

* Remove .stdout from versions.

* Avoid stdin.
2025-05-03 14:42:41 +02:00
Felix Fontein
5bcbd4d0f4 Enable formatting with black; add reformat commit to .git-blame-ignore-revs. 2025-04-28 20:35:32 +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
33ef158b09 Fix linting errors. 2025-04-26 12:18:21 +02:00
Felix Fontein
51a4f76f26 Add yamllint to antsibull-nox and add config files, and prepare ignore.txt entries. 2025-04-26 12:18:21 +02:00
Felix Fontein
194ab4694e Make reuse conformant (#509)
* Revert "Improve reuse test."

This reverts commit 7eddfda7f8.

* Revert "Update README."

This reverts commit b0ec28c6a1.

* Revert "Add exceptions."

This reverts commit c749421292.
(This commit got adjusted to changes in community.crypto.)

* Revert "Revert "Add .license file for vendored third-party certificates.""

This reverts commit 034b900a30.

* Remove no longer necessary REUSE workflow.

This is now checked by nox.

* Fix filenames.

* Update .gitignore.
2025-04-24 22:43:06 +02:00
Felix Fontein
046aeab5e2 Run extra sanity tests with nox. (#861) 2025-04-19 17:54:14 +02:00