Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-pytest-ansible for
openSUSE:Factory checked in at 2025-04-30 19:04:16
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-pytest-ansible (Old)
and /work/SRC/openSUSE:Factory/.python-pytest-ansible.new.30101 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-pytest-ansible"
Wed Apr 30 19:04:16 2025 rev:14 rq:1273514 version:25.4.1
Changes:
--------
---
/work/SRC/openSUSE:Factory/python-pytest-ansible/python-pytest-ansible.changes
2025-04-02 17:17:32.843881532 +0200
+++
/work/SRC/openSUSE:Factory/.python-pytest-ansible.new.30101/python-pytest-ansible.changes
2025-04-30 19:04:17.102082647 +0200
@@ -1,0 +2,9 @@
+Tue Apr 29 19:47:02 UTC 2025 - Johannes Kastl
<[email protected]>
+
+- Update to version 25.4.1:
+ * Bugfixes
+ - Workaround for dependabot improper python version (#444)
+ @ssbarnea
+ - Make default host_pattern be localhost (#437) @ssbarnea
+
+-------------------------------------------------------------------
Old:
----
pytest-ansible-25.4.0.obscpio
New:
----
pytest-ansible-25.4.1.obscpio
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-pytest-ansible.spec ++++++
--- /var/tmp/diff_new_pack.76UxJQ/_old 2025-04-30 19:04:17.998119998 +0200
+++ /var/tmp/diff_new_pack.76UxJQ/_new 2025-04-30 19:04:18.002120164 +0200
@@ -44,7 +44,7 @@
%endif
Name: python-pytest-ansible
-Version: 25.4.0
+Version: 25.4.1
Release: 0
Summary: Plugin for pytest to simplify calling ansible modules from
tests or fixtures
License: MIT
++++++ _service ++++++
--- /var/tmp/diff_new_pack.76UxJQ/_old 2025-04-30 19:04:18.026121165 +0200
+++ /var/tmp/diff_new_pack.76UxJQ/_new 2025-04-30 19:04:18.030121331 +0200
@@ -2,7 +2,7 @@
<service name="obs_scm" mode="manual">
<param
name="url">https://github.com/ansible-community/pytest-ansible</param>
<param name="scm">git</param>
- <param name="revision">v25.4.0</param>
+ <param name="revision">v25.4.1</param>
<param name="versionformat">@PARENT_TAG@</param>
<param name="changesgenerate">enable</param>
<param name="versionrewrite-pattern">v(.*)</param>
++++++ _servicedata ++++++
--- /var/tmp/diff_new_pack.76UxJQ/_old 2025-04-30 19:04:18.062122665 +0200
+++ /var/tmp/diff_new_pack.76UxJQ/_new 2025-04-30 19:04:18.066122832 +0200
@@ -1,6 +1,6 @@
<servicedata>
<service name="tar_scm">
<param
name="url">https://github.com/ansible-community/pytest-ansible</param>
- <param
name="changesrevision">8fe768c6931dba59e1bae3aec7f2651c6ff4c2f7</param></service></servicedata>
+ <param
name="changesrevision">46cf3143a157f1e443976053818fc2818fd482af</param></service></servicedata>
(No newline at EOF)
++++++ pytest-ansible-25.4.0.obscpio -> pytest-ansible-25.4.1.obscpio ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pytest-ansible-25.4.0/.config/constraints.txt
new/pytest-ansible-25.4.1/.config/constraints.txt
--- old/pytest-ansible-25.4.0/.config/constraints.txt 2025-03-30
04:46:30.000000000 +0200
+++ new/pytest-ansible-25.4.1/.config/constraints.txt 2025-04-27
08:14:12.000000000 +0200
@@ -1,16 +1,16 @@
# This file was autogenerated by uv via the following command:
# tox run deps
-ansible-compat==25.1.4 # via molecule, pytest-ansible (pyproject.toml)
+ansible-compat==25.1.5 # via molecule, pytest-ansible (pyproject.toml)
astroid==3.3.9 # via pylint
attrs==25.3.0 # via jsonschema, referencing
babel==2.17.0 # via mkdocs-material
backrefs==5.8 # via mkdocs-material
-beautifulsoup4==4.13.3 # via linkchecker, mkdocs-htmlproofer-plugin
+beautifulsoup4==4.13.4 # via linkchecker, mkdocs-htmlproofer-plugin
bracex==2.5.post1 # via wcmatch
cachetools==5.5.2 # via tox
cairocffi==1.7.1 # via cairosvg
cairosvg==2.7.1 # via mkdocs-ansible
-certifi==2025.1.31 # via requests
+certifi==2025.4.26 # via requests
cffi==1.17.1 # via cairocffi, cryptography
cfgv==3.4.0 # via pre-commit
chardet==5.2.0 # via tox
@@ -18,12 +18,12 @@
click==8.1.8 # via click-help-colors, mkdocs, molecule, pydoclint
click-help-colors==0.9.4 # via molecule
colorama==0.4.6 # via griffe, mkdocs-material, tox
-coverage==7.7.1 # via pytest-ansible (pyproject.toml)
+coverage==7.8.0 # via pytest-ansible (pyproject.toml)
cryptography==44.0.2 # via ansible-core
csscompressor==0.9.5 # via mkdocs-minify-plugin
cssselect2==0.8.0 # via cairosvg
defusedxml==0.7.1 # via cairosvg
-dill==0.3.9 # via pylint
+dill==0.4.0 # via pylint
distlib==0.3.9 # via virtualenv
dnspython==2.7.0 # via linkchecker
docstring-parser-fork==0.0.12 # via pydoclint
@@ -32,19 +32,19 @@
execnet==2.1.1 # via pytest-xdist
filelock==3.18.0 # via tox, virtualenv
ghp-import==2.1.0 # via mkdocs
-griffe==1.7.1 # via mkdocstrings-python
+griffe==1.7.3 # via mkdocstrings-python
hjson==3.1.0 # via mkdocs-macros-plugin, super-collections
htmlmin2==0.1.13 # via mkdocs-minify-plugin
-identify==2.6.9 # via pre-commit
+identify==2.6.10 # via pre-commit
idna==3.10 # via requests
iniconfig==2.1.0 # via pytest
isort==6.0.1 # via pylint
jinja2==3.1.6 # via ansible-core, mkdocs, mkdocs-macros-plugin,
mkdocs-material, mkdocstrings, molecule
jsmin==3.0.1 # via mkdocs-minify-plugin
jsonschema==4.23.0 # via ansible-compat, molecule
-jsonschema-specifications==2024.10.1 # via jsonschema
+jsonschema-specifications==2025.4.1 # via jsonschema
linkchecker==10.5.0 # via mkdocs-ansible
-markdown==3.7 # via markdown-include, mkdocs, mkdocs-autorefs,
mkdocs-htmlproofer-plugin, mkdocs-material, mkdocstrings, pymdown-extensions
+markdown==3.8 # via markdown-include, mkdocs, mkdocs-autorefs,
mkdocs-htmlproofer-plugin, mkdocs-material, mkdocstrings, pymdown-extensions
markdown-exec==1.10.3 # via mkdocs-ansible
markdown-include==0.8.1 # via mkdocs-ansible
markdown-it-py==3.0.0 # via rich
@@ -59,27 +59,27 @@
mkdocs-get-deps==0.2.0 # via mkdocs
mkdocs-htmlproofer-plugin==1.3.0 # via mkdocs-ansible
mkdocs-macros-plugin==1.3.7 # via mkdocs-ansible
-mkdocs-material==9.6.9 # via mkdocs-ansible
+mkdocs-material==9.6.12 # via mkdocs-ansible
mkdocs-material-extensions==1.3.1 # via mkdocs-ansible, mkdocs-material
mkdocs-minify-plugin==0.8.0 # via mkdocs-ansible
mkdocs-monorepo-plugin==1.1.0 # via mkdocs-ansible
-mkdocstrings==0.29.0 # via mkdocs-ansible, mkdocstrings-python
-mkdocstrings-python==1.16.8 # via mkdocs-ansible
-molecule==25.3.1 # via pytest-ansible (pyproject.toml)
+mkdocstrings==0.29.1 # via mkdocs-ansible, mkdocstrings-python
+mkdocstrings-python==1.16.10 # via mkdocs-ansible
+molecule==25.4.0 # via pytest-ansible (pyproject.toml)
mypy==1.15.0 # via pytest-ansible (pyproject.toml)
-mypy-extensions==1.0.0 # via mypy
+mypy-extensions==1.1.0 # via mypy
nodeenv==1.9.1 # via pre-commit
-packaging==24.2 # via ansible-compat, ansible-core, mkdocs,
mkdocs-macros-plugin, molecule, pyproject-api, pytest, tox, pytest-ansible
(pyproject.toml)
+packaging==25.0 # via ansible-compat, ansible-core, mkdocs,
mkdocs-macros-plugin, molecule, pyproject-api, pytest, tox, pytest-ansible
(pyproject.toml)
paginate==0.5.7 # via mkdocs-material
pathspec==0.12.1 # via mkdocs, mkdocs-macros-plugin
-pillow==11.1.0 # via cairosvg, mkdocs-ansible
+pillow==11.2.1 # via cairosvg, mkdocs-ansible
platformdirs==4.3.7 # via mkdocs-get-deps, pylint, tox, virtualenv
pluggy==1.5.0 # via molecule, pytest, tox
-pre-commit==4.1.0 # via pytest-ansible (pyproject.toml)
+pre-commit==4.2.0 # via pytest-ansible (pyproject.toml)
pycparser==2.22 # via cffi
-pydoclint==0.6.2 # via pytest-ansible (pyproject.toml)
+pydoclint==0.6.6 # via pytest-ansible (pyproject.toml)
pygments==2.19.1 # via mkdocs-material, rich
-pylint==3.3.5 # via pytest-ansible (pyproject.toml)
+pylint==3.3.6 # via pytest-ansible (pyproject.toml)
pymdown-extensions==10.14.3 # via markdown-exec, mkdocs-ansible,
mkdocs-material, mkdocstrings
pyproject-api==1.9.0 # via tox
pytest==8.3.5 # via pytest-github-actions-annotate-failures,
pytest-plus, pytest-xdist, pytest-ansible (pyproject.toml)
@@ -92,23 +92,23 @@
pyyaml-env-tag==0.1 # via mkdocs
referencing==0.36.2 # via jsonschema, jsonschema-specifications
requests==2.32.3 # via linkchecker, mkdocs-htmlproofer-plugin,
mkdocs-material
-rich==13.9.4 # via enrich, molecule
+rich==14.0.0 # via enrich, molecule
rpds-py==0.24.0 # via jsonschema, referencing
-ruff==0.11.0 # via pytest-ansible (pyproject.toml)
+ruff==0.11.7 # via pytest-ansible (pyproject.toml)
six==1.17.0 # via python-dateutil
-soupsieve==2.6 # via beautifulsoup4
+soupsieve==2.7 # via beautifulsoup4
subprocess-tee==0.4.2 # via ansible-compat
super-collections==0.5.3 # via mkdocs-macros-plugin
-termcolor==2.5.0 # via mkdocs-macros-plugin
+termcolor==3.0.1 # via mkdocs-macros-plugin
text-unidecode==1.3 # via python-slugify
tinycss2==1.4.0 # via cairosvg, cssselect2
toml-sort==0.24.2 # via pytest-ansible (pyproject.toml)
tomli==2.2.1 # via coverage, mypy, pydoclint, pylint,
pyproject-api, pytest, tox
tomlkit==0.13.2 # via pylint, toml-sort
-tox==4.24.2 # via pytest-ansible (pyproject.toml)
-types-pyyaml==6.0.12.20241230 # via pytest-ansible (pyproject.toml)
-urllib3==2.3.0 # via requests
-virtualenv==20.29.3 # via pre-commit, tox
+tox==4.25.0 # via pytest-ansible (pyproject.toml)
+types-pyyaml==6.0.12.20250402 # via pytest-ansible (pyproject.toml)
+urllib3==2.4.0 # via requests
+virtualenv==20.30.0 # via pre-commit, tox
watchdog==6.0.0 # via mkdocs
wcmatch==10.0 # via molecule
webencodings==0.5.1 # via cssselect2, tinycss2
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pytest-ansible-25.4.0/.config/pydoclint-baseline.txt
new/pytest-ansible-25.4.1/.config/pydoclint-baseline.txt
--- old/pytest-ansible-25.4.0/.config/pydoclint-baseline.txt 2025-03-30
04:46:30.000000000 +0200
+++ new/pytest-ansible-25.4.1/.config/pydoclint-baseline.txt 2025-04-27
08:14:12.000000000 +0200
@@ -39,8 +39,6 @@
DOC101: Method `BaseHostManager.check_required_kwargs`: Docstring contains
fewer arguments than in function signature.
DOC106: Method `BaseHostManager.check_required_kwargs`: The option
`--arg-type-hints-in-signature` is `True` but there are no argument type hints
in the signature
DOC103: Method `BaseHostManager.check_required_kwargs`: Docstring
arguments are different from function arguments. (Or could be other formatting
issues: https://jsh9.github.io/pydoclint/violation_codes.html#notes-on-doc103
). Arguments in the function signature but not in the docstring: [**kwargs: ].
- DOC501: Method `BaseHostManager.check_required_kwargs` has raise/assert
statements, but the docstring does not have a "Raises" section
- DOC503: Method `BaseHostManager.check_required_kwargs` exceptions in the
"Raises" section in the docstring do not match those in the function body.
Raised exceptions in the docstring: []. Raised exceptions in the body:
['TypeError'].
DOC101: Method `BaseHostManager.has_matching_inventory`: Docstring
contains fewer arguments than in function signature.
DOC106: Method `BaseHostManager.has_matching_inventory`: The option
`--arg-type-hints-in-signature` is `True` but there are no argument type hints
in the signature
DOC107: Method `BaseHostManager.has_matching_inventory`: The option
`--arg-type-hints-in-signature` is `True` but not all args in the signature
have type hints
@@ -51,15 +49,11 @@
DOC107: Method `BaseHostManager.__getitem__`: The option
`--arg-type-hints-in-signature` is `True` but not all args in the signature
have type hints
DOC103: Method `BaseHostManager.__getitem__`: Docstring arguments are
different from function arguments. (Or could be other formatting issues:
https://jsh9.github.io/pydoclint/violation_codes.html#notes-on-doc103 ).
Arguments in the function signature but not in the docstring: [item: ].
DOC201: Method `BaseHostManager.__getitem__` does not have a return
section in docstring
- DOC501: Method `BaseHostManager.__getitem__` has raise/assert statements,
but the docstring does not have a "Raises" section
- DOC503: Method `BaseHostManager.__getitem__` exceptions in the "Raises"
section in the docstring do not match those in the function body. Raised
exceptions in the docstring: []. Raised exceptions in the body: ['KeyError'].
DOC101: Method `BaseHostManager.__getattr__`: Docstring contains fewer
arguments than in function signature.
DOC106: Method `BaseHostManager.__getattr__`: The option
`--arg-type-hints-in-signature` is `True` but there are no argument type hints
in the signature
DOC107: Method `BaseHostManager.__getattr__`: The option
`--arg-type-hints-in-signature` is `True` but not all args in the signature
have type hints
DOC103: Method `BaseHostManager.__getattr__`: Docstring arguments are
different from function arguments. (Or could be other formatting issues:
https://jsh9.github.io/pydoclint/violation_codes.html#notes-on-doc103 ).
Arguments in the function signature but not in the docstring: [attr: ].
DOC201: Method `BaseHostManager.__getattr__` does not have a return
section in docstring
- DOC501: Method `BaseHostManager.__getattr__` has raise/assert statements,
but the docstring does not have a "Raises" section
- DOC503: Method `BaseHostManager.__getattr__` exceptions in the "Raises"
section in the docstring do not match those in the function body. Raised
exceptions in the docstring: []. Raised exceptions in the body:
['AttributeError'].
DOC201: Method `BaseHostManager.keys` does not have a return section in
docstring
DOC201: Method `BaseHostManager.__iter__` does not have a return section
in docstring
DOC201: Method `BaseHostManager.__len__` does not have a return section in
docstring
@@ -68,13 +62,9 @@
DOC107: Method `BaseHostManager.__contains__`: The option
`--arg-type-hints-in-signature` is `True` but not all args in the signature
have type hints
DOC103: Method `BaseHostManager.__contains__`: Docstring arguments are
different from function arguments. (Or could be other formatting issues:
https://jsh9.github.io/pydoclint/violation_codes.html#notes-on-doc103 ).
Arguments in the function signature but not in the docstring: [item: ].
DOC201: Method `BaseHostManager.__contains__` does not have a return
section in docstring
- DOC501: Method `BaseHostManager.initialize_inventory` has raise/assert
statements, but the docstring does not have a "Raises" section
- DOC503: Method `BaseHostManager.initialize_inventory` exceptions in the
"Raises" section in the docstring do not match those in the function body.
Raised exceptions in the docstring: []. Raised exceptions in the body:
['NotImplementedError'].
--------------------
src/pytest_ansible/host_manager/utils.py
DOC106: Function `get_host_manager`: The option
`--arg-type-hints-in-signature` is `True` but there are no argument type hints
in the signature
- DOC501: Function `get_host_manager` has raise/assert statements, but the
docstring does not have a "Raises" section
- DOC503: Function `get_host_manager` exceptions in the "Raises" section in
the docstring do not match those in the function body. Raised exceptions in the
docstring: []. Raised exceptions in the body: ['RuntimeError'].
--------------------
src/pytest_ansible/host_manager/v213.py
DOC101: Method `HostManagerV213.__init__`: Docstring contains fewer
arguments than in function signature.
@@ -96,21 +86,15 @@
DOC107: Method `BaseModuleDispatcher.__getattr__`: The option
`--arg-type-hints-in-signature` is `True` but not all args in the signature
have type hints
DOC103: Method `BaseModuleDispatcher.__getattr__`: Docstring arguments are
different from function arguments. (Or could be other formatting issues:
https://jsh9.github.io/pydoclint/violation_codes.html#notes-on-doc103 ).
Arguments in the function signature but not in the docstring: [name: ].
DOC201: Method `BaseModuleDispatcher.__getattr__` does not have a return
section in docstring
- DOC501: Method `BaseModuleDispatcher.__getattr__` has raise/assert
statements, but the docstring does not have a "Raises" section
- DOC503: Method `BaseModuleDispatcher.__getattr__` exceptions in the
"Raises" section in the docstring do not match those in the function body.
Raised exceptions in the docstring: []. Raised exceptions in the body:
['AnsibleModuleError'].
DOC101: Method `BaseModuleDispatcher.check_required_kwargs`: Docstring
contains fewer arguments than in function signature.
DOC106: Method `BaseModuleDispatcher.check_required_kwargs`: The option
`--arg-type-hints-in-signature` is `True` but there are no argument type hints
in the signature
DOC103: Method `BaseModuleDispatcher.check_required_kwargs`: Docstring
arguments are different from function arguments. (Or could be other formatting
issues: https://jsh9.github.io/pydoclint/violation_codes.html#notes-on-doc103
). Arguments in the function signature but not in the docstring: [**kwargs: ].
- DOC501: Method `BaseModuleDispatcher.check_required_kwargs` has
raise/assert statements, but the docstring does not have a "Raises" section
- DOC503: Method `BaseModuleDispatcher.check_required_kwargs` exceptions in
the "Raises" section in the docstring do not match those in the function body.
Raised exceptions in the docstring: []. Raised exceptions in the body:
['TypeError'].
DOC101: Method `BaseModuleDispatcher.has_module`: Docstring contains fewer
arguments than in function signature.
DOC103: Method `BaseModuleDispatcher.has_module`: Docstring arguments are
different from function arguments. (Or could be other formatting issues:
https://jsh9.github.io/pydoclint/violation_codes.html#notes-on-doc103 ).
Arguments in the function signature but not in the docstring: [name: str].
DOC201: Method `BaseModuleDispatcher.has_module` does not have a return
section in docstring
DOC101: Method `BaseModuleDispatcher._run`: Docstring contains fewer
arguments than in function signature.
DOC106: Method `BaseModuleDispatcher._run`: The option
`--arg-type-hints-in-signature` is `True` but there are no argument type hints
in the signature
DOC103: Method `BaseModuleDispatcher._run`: Docstring arguments are
different from function arguments. (Or could be other formatting issues:
https://jsh9.github.io/pydoclint/violation_codes.html#notes-on-doc103 ).
Arguments in the function signature but not in the docstring: [**kwargs: ,
*args: ].
- DOC501: Method `BaseModuleDispatcher._run` has raise/assert statements,
but the docstring does not have a "Raises" section
- DOC503: Method `BaseModuleDispatcher._run` exceptions in the "Raises"
section in the docstring do not match those in the function body. Raised
exceptions in the docstring: []. Raised exceptions in the body:
['RuntimeError'].
--------------------
src/pytest_ansible/module_dispatcher/v213.py
DOC101: Method `ResultAccumulator.__init__`: Docstring contains fewer
arguments than in function signature.
@@ -131,16 +115,12 @@
DOC101: Method `ModuleDispatcherV213.__init__`: Docstring contains fewer
arguments than in function signature.
DOC106: Method `ModuleDispatcherV213.__init__`: The option
`--arg-type-hints-in-signature` is `True` but there are no argument type hints
in the signature
DOC103: Method `ModuleDispatcherV213.__init__`: Docstring arguments are
different from function arguments. (Or could be other formatting issues:
https://jsh9.github.io/pydoclint/violation_codes.html#notes-on-doc103 ).
Arguments in the function signature but not in the docstring: [**kwargs: ].
- DOC501: Method `ModuleDispatcherV213.__init__` has raise/assert
statements, but the docstring does not have a "Raises" section
- DOC503: Method `ModuleDispatcherV213.__init__` exceptions in the "Raises"
section in the docstring do not match those in the function body. Raised
exceptions in the docstring: []. Raised exceptions in the body: ['ImportError'].
DOC101: Method `ModuleDispatcherV213.has_module`: Docstring contains fewer
arguments than in function signature.
DOC103: Method `ModuleDispatcherV213.has_module`: Docstring arguments are
different from function arguments. (Or could be other formatting issues:
https://jsh9.github.io/pydoclint/violation_codes.html#notes-on-doc103 ).
Arguments in the function signature but not in the docstring: [name: str].
DOC101: Method `ModuleDispatcherV213._run`: Docstring contains fewer
arguments than in function signature.
DOC106: Method `ModuleDispatcherV213._run`: The option
`--arg-type-hints-in-signature` is `True` but there are no argument type hints
in the signature
DOC103: Method `ModuleDispatcherV213._run`: Docstring arguments are
different from function arguments. (Or could be other formatting issues:
https://jsh9.github.io/pydoclint/violation_codes.html#notes-on-doc103 ).
Arguments in the function signature but not in the docstring: [**complex_args:
, *module_args: ].
DOC201: Method `ModuleDispatcherV213._run` does not have a return section
in docstring
- DOC501: Method `ModuleDispatcherV213._run` has raise/assert statements,
but the docstring does not have a "Raises" section
- DOC503: Method `ModuleDispatcherV213._run` exceptions in the "Raises"
section in the docstring do not match those in the function body. Raised
exceptions in the docstring: []. Raised exceptions in the body:
['AnsibleConnectionFailure', 'ansible.errors.AnsibleError'].
--------------------
src/pytest_ansible/molecule.py
DOC101: Function `molecule_pytest_configure`: Docstring contains fewer
arguments than in function signature.
@@ -172,8 +152,6 @@
DOC106: Function `pytest_configure`: The option
`--arg-type-hints-in-signature` is `True` but there are no argument type hints
in the signature
DOC107: Function `pytest_configure`: The option
`--arg-type-hints-in-signature` is `True` but not all args in the signature
have type hints
DOC103: Function `pytest_configure`: Docstring arguments are different
from function arguments. (Or could be other formatting issues:
https://jsh9.github.io/pydoclint/violation_codes.html#notes-on-doc103 ).
Arguments in the function signature but not in the docstring: [config: ].
- DOC501: Function `pytest_configure` has raise/assert statements, but the
docstring does not have a "Raises" section
- DOC503: Function `pytest_configure` exceptions in the "Raises" section in
the docstring do not match those in the function body. Raised exceptions in the
docstring: []. Raised exceptions in the body: ['AssertionError (implicitly from
the `assert` statement)'].
DOC101: Function `pytest_collect_file`: Docstring contains fewer arguments
than in function signature.
DOC103: Function `pytest_collect_file`: Docstring arguments are different
from function arguments. (Or could be other formatting issues:
https://jsh9.github.io/pydoclint/violation_codes.html#notes-on-doc103 ).
Arguments in the function signature but not in the docstring: [file_path: Path
| None, parent: pytest.Collector].
DOC201: Function `pytest_collect_file` does not have a return section in
docstring
@@ -181,8 +159,6 @@
DOC106: Function `pytest_generate_tests`: The option
`--arg-type-hints-in-signature` is `True` but there are no argument type hints
in the signature
DOC107: Function `pytest_generate_tests`: The option
`--arg-type-hints-in-signature` is `True` but not all args in the signature
have type hints
DOC103: Function `pytest_generate_tests`: Docstring arguments are
different from function arguments. (Or could be other formatting issues:
https://jsh9.github.io/pydoclint/violation_codes.html#notes-on-doc103 ).
Arguments in the function signature but not in the docstring: [metafunc: ].
- DOC501: Function `pytest_generate_tests` has raise/assert statements, but
the docstring does not have a "Raises" section
- DOC503: Function `pytest_generate_tests` exceptions in the "Raises"
section in the docstring do not match those in the function body. Raised
exceptions in the docstring: []. Raised exceptions in the body:
['pytest.UsageError'].
DOC101: Method `PyTestAnsiblePlugin.__init__`: Docstring contains fewer
arguments than in function signature.
DOC106: Method `PyTestAnsiblePlugin.__init__`: The option
`--arg-type-hints-in-signature` is `True` but there are no argument type hints
in the signature
DOC107: Method `PyTestAnsiblePlugin.__init__`: The option
`--arg-type-hints-in-signature` is `True` but not all args in the signature
have type hints
@@ -211,29 +187,21 @@
DOC106: Method `PyTestAnsiblePlugin.assert_required_ansible_parameters`:
The option `--arg-type-hints-in-signature` is `True` but there are no argument
type hints in the signature
DOC107: Method `PyTestAnsiblePlugin.assert_required_ansible_parameters`:
The option `--arg-type-hints-in-signature` is `True` but not all args in the
signature have type hints
DOC103: Method `PyTestAnsiblePlugin.assert_required_ansible_parameters`:
Docstring arguments are different from function arguments. (Or could be other
formatting issues:
https://jsh9.github.io/pydoclint/violation_codes.html#notes-on-doc103 ).
Arguments in the function signature but not in the docstring: [config: ].
- DOC501: Method `PyTestAnsiblePlugin.assert_required_ansible_parameters`
has raise/assert statements, but the docstring does not have a "Raises" section
- DOC503: Method `PyTestAnsiblePlugin.assert_required_ansible_parameters`
exceptions in the "Raises" section in the docstring do not match those in the
function body. Raised exceptions in the docstring: []. Raised exceptions in the
body: ['pytest.UsageError'].
--------------------
src/pytest_ansible/results.py
DOC101: Method `AdHocResult.__init__`: Docstring contains fewer arguments
than in function signature.
DOC106: Method `AdHocResult.__init__`: The option
`--arg-type-hints-in-signature` is `True` but there are no argument type hints
in the signature
DOC103: Method `AdHocResult.__init__`: Docstring arguments are different
from function arguments. (Or could be other formatting issues:
https://jsh9.github.io/pydoclint/violation_codes.html#notes-on-doc103 ).
Arguments in the function signature but not in the docstring: [**kwargs: ].
- DOC501: Method `AdHocResult.__init__` has raise/assert statements, but the
docstring does not have a "Raises" section
- DOC503: Method `AdHocResult.__init__` exceptions in the "Raises" section
in the docstring do not match those in the function body. Raised exceptions in
the docstring: []. Raised exceptions in the body: ['AssertionError (implicitly
from the `assert` statement)'].
DOC101: Method `AdHocResult.__getitem__`: Docstring contains fewer
arguments than in function signature.
DOC106: Method `AdHocResult.__getitem__`: The option
`--arg-type-hints-in-signature` is `True` but there are no argument type hints
in the signature
DOC107: Method `AdHocResult.__getitem__`: The option
`--arg-type-hints-in-signature` is `True` but not all args in the signature
have type hints
DOC103: Method `AdHocResult.__getitem__`: Docstring arguments are
different from function arguments. (Or could be other formatting issues:
https://jsh9.github.io/pydoclint/violation_codes.html#notes-on-doc103 ).
Arguments in the function signature but not in the docstring: [item: ].
DOC201: Method `AdHocResult.__getitem__` does not have a return section in
docstring
- DOC501: Method `AdHocResult.__getitem__` has raise/assert statements, but
the docstring does not have a "Raises" section
- DOC503: Method `AdHocResult.__getitem__` exceptions in the "Raises"
section in the docstring do not match those in the function body. Raised
exceptions in the docstring: []. Raised exceptions in the body: ['KeyError'].
DOC101: Method `AdHocResult.__getattr__`: Docstring contains fewer
arguments than in function signature.
DOC106: Method `AdHocResult.__getattr__`: The option
`--arg-type-hints-in-signature` is `True` but there are no argument type hints
in the signature
DOC107: Method `AdHocResult.__getattr__`: The option
`--arg-type-hints-in-signature` is `True` but not all args in the signature
have type hints
DOC103: Method `AdHocResult.__getattr__`: Docstring arguments are
different from function arguments. (Or could be other formatting issues:
https://jsh9.github.io/pydoclint/violation_codes.html#notes-on-doc103 ).
Arguments in the function signature but not in the docstring: [attr: ].
DOC201: Method `AdHocResult.__getattr__` does not have a return section in
docstring
- DOC501: Method `AdHocResult.__getattr__` has raise/assert statements, but
the docstring does not have a "Raises" section
- DOC503: Method `AdHocResult.__getattr__` exceptions in the "Raises"
section in the docstring do not match those in the function body. Raised
exceptions in the docstring: []. Raised exceptions in the body:
['AttributeError'].
DOC201: Method `AdHocResult.__len__` does not have a return section in
docstring
DOC101: Method `AdHocResult.__contains__`: Docstring contains fewer
arguments than in function signature.
DOC106: Method `AdHocResult.__contains__`: The option
`--arg-type-hints-in-signature` is `True` but there are no argument type hints
in the signature
@@ -268,80 +236,52 @@
DOC201: Function `option` does not have a return section in docstring
--------------------
tests/integration/test_molecule.py
- DOC501: Function `test_molecule_collect` has raise/assert statements, but
the docstring does not have a "Raises" section
- DOC503: Function `test_molecule_collect` exceptions in the "Raises"
section in the docstring do not match those in the function body. Raised
exceptions in the docstring: []. Raised exceptions in the body:
['AssertionError (implicitly from the `assert` statement)'].
- DOC501: Function `test_molecule_disabled` has raise/assert statements, but
the docstring does not have a "Raises" section
- DOC503: Function `test_molecule_disabled` exceptions in the "Raises"
section in the docstring do not match those in the function body. Raised
exceptions in the docstring: []. Raised exceptions in the body:
['AssertionError (implicitly from the `assert` statement)'].
- DOC501: Function `test_molecule_runtest` has raise/assert statements, but
the docstring does not have a "Raises" section
- DOC503: Function `test_molecule_runtest` exceptions in the "Raises"
section in the docstring do not match those in the function body. Raised
exceptions in the docstring: []. Raised exceptions in the body:
['AssertionError (implicitly from the `assert` statement)'].
DOC101: Function `test_molecule_fixture`: Docstring contains fewer
arguments than in function signature.
DOC103: Function `test_molecule_fixture`: Docstring arguments are
different from function arguments. (Or could be other formatting issues:
https://jsh9.github.io/pydoclint/violation_codes.html#notes-on-doc103 ).
Arguments in the function signature but not in the docstring:
[molecule_scenario: MoleculeScenario].
- DOC501: Function `test_molecule_fixture` has raise/assert statements, but
the docstring does not have a "Raises" section
- DOC503: Function `test_molecule_fixture` exceptions in the "Raises"
section in the docstring do not match those in the function body. Raised
exceptions in the docstring: []. Raised exceptions in the body:
['AssertionError (implicitly from the `assert` statement)'].
--------------------
tests/test_adhoc.py
DOC101: Function `test_contacted_with_params`: Docstring contains fewer
arguments than in function signature.
DOC106: Function `test_contacted_with_params`: The option
`--arg-type-hints-in-signature` is `True` but there are no argument type hints
in the signature
DOC107: Function `test_contacted_with_params`: The option
`--arg-type-hints-in-signature` is `True` but not all args in the signature
have type hints
DOC103: Function `test_contacted_with_params`: Docstring arguments are
different from function arguments. (Or could be other formatting issues:
https://jsh9.github.io/pydoclint/violation_codes.html#notes-on-doc103 ).
Arguments in the function signature but not in the docstring: [option: ,
pytester: ].
- DOC501: Function `test_contacted_with_params` has raise/assert statements,
but the docstring does not have a "Raises" section
- DOC503: Function `test_contacted_with_params` exceptions in the "Raises"
section in the docstring do not match those in the function body. Raised
exceptions in the docstring: []. Raised exceptions in the body:
['AssertionError (implicitly from the `assert` statement)'].
DOC101: Function `test_contacted_with_params_and_inventory_marker`:
Docstring contains fewer arguments than in function signature.
DOC106: Function `test_contacted_with_params_and_inventory_marker`: The
option `--arg-type-hints-in-signature` is `True` but there are no argument type
hints in the signature
DOC107: Function `test_contacted_with_params_and_inventory_marker`: The
option `--arg-type-hints-in-signature` is `True` but not all args in the
signature have type hints
DOC103: Function `test_contacted_with_params_and_inventory_marker`:
Docstring arguments are different from function arguments. (Or could be other
formatting issues:
https://jsh9.github.io/pydoclint/violation_codes.html#notes-on-doc103 ).
Arguments in the function signature but not in the docstring: [option: ,
pytester: ].
- DOC501: Function `test_contacted_with_params_and_inventory_marker` has
raise/assert statements, but the docstring does not have a "Raises" section
- DOC503: Function `test_contacted_with_params_and_inventory_marker`
exceptions in the "Raises" section in the docstring do not match those in the
function body. Raised exceptions in the docstring: []. Raised exceptions in the
body: ['AssertionError (implicitly from the `assert` statement)'].
DOC101: Function `test_contacted_with_params_and_host_pattern_marker`:
Docstring contains fewer arguments than in function signature.
DOC106: Function `test_contacted_with_params_and_host_pattern_marker`: The
option `--arg-type-hints-in-signature` is `True` but there are no argument type
hints in the signature
DOC107: Function `test_contacted_with_params_and_host_pattern_marker`: The
option `--arg-type-hints-in-signature` is `True` but not all args in the
signature have type hints
DOC103: Function `test_contacted_with_params_and_host_pattern_marker`:
Docstring arguments are different from function arguments. (Or could be other
formatting issues:
https://jsh9.github.io/pydoclint/violation_codes.html#notes-on-doc103 ).
Arguments in the function signature but not in the docstring: [option: ,
pytester: ].
- DOC501: Function `test_contacted_with_params_and_host_pattern_marker` has
raise/assert statements, but the docstring does not have a "Raises" section
- DOC503: Function `test_contacted_with_params_and_host_pattern_marker`
exceptions in the "Raises" section in the docstring do not match those in the
function body. Raised exceptions in the docstring: []. Raised exceptions in the
body: ['AssertionError (implicitly from the `assert` statement)'].
DOC101: Function
`test_contacted_with_params_and_inventory_host_pattern_marker`: Docstring
contains fewer arguments than in function signature.
DOC106: Function
`test_contacted_with_params_and_inventory_host_pattern_marker`: The option
`--arg-type-hints-in-signature` is `True` but there are no argument type hints
in the signature
DOC107: Function
`test_contacted_with_params_and_inventory_host_pattern_marker`: The option
`--arg-type-hints-in-signature` is `True` but not all args in the signature
have type hints
DOC103: Function
`test_contacted_with_params_and_inventory_host_pattern_marker`: Docstring
arguments are different from function arguments. (Or could be other formatting
issues: https://jsh9.github.io/pydoclint/violation_codes.html#notes-on-doc103
). Arguments in the function signature but not in the docstring: [option: ,
pytester: ].
- DOC501: Function
`test_contacted_with_params_and_inventory_host_pattern_marker` has raise/assert
statements, but the docstring does not have a "Raises" section
- DOC503: Function
`test_contacted_with_params_and_inventory_host_pattern_marker` exceptions in
the "Raises" section in the docstring do not match those in the function body.
Raised exceptions in the docstring: []. Raised exceptions in the body:
['AssertionError (implicitly from the `assert` statement)'].
DOC101: Function `test_become`: Docstring contains fewer arguments than in
function signature.
DOC106: Function `test_become`: The option `--arg-type-hints-in-signature`
is `True` but there are no argument type hints in the signature
DOC107: Function `test_become`: The option `--arg-type-hints-in-signature`
is `True` but not all args in the signature have type hints
DOC103: Function `test_become`: Docstring arguments are different from
function arguments. (Or could be other formatting issues:
https://jsh9.github.io/pydoclint/violation_codes.html#notes-on-doc103 ).
Arguments in the function signature but not in the docstring: [option: ,
pytester: ].
- DOC501: Function `test_become` has raise/assert statements, but the
docstring does not have a "Raises" section
- DOC503: Function `test_become` exceptions in the "Raises" section in the
docstring do not match those in the function body. Raised exceptions in the
docstring: []. Raised exceptions in the body: ['AssertionError (implicitly from
the `assert` statement)'].
DOC101: Function `test_dark_with_params`: Docstring contains fewer
arguments than in function signature.
DOC106: Function `test_dark_with_params`: The option
`--arg-type-hints-in-signature` is `True` but there are no argument type hints
in the signature
DOC107: Function `test_dark_with_params`: The option
`--arg-type-hints-in-signature` is `True` but not all args in the signature
have type hints
DOC103: Function `test_dark_with_params`: Docstring arguments are
different from function arguments. (Or could be other formatting issues:
https://jsh9.github.io/pydoclint/violation_codes.html#notes-on-doc103 ).
Arguments in the function signature but not in the docstring: [option: ,
pytester: ].
- DOC501: Function `test_dark_with_params` has raise/assert statements, but
the docstring does not have a "Raises" section
- DOC503: Function `test_dark_with_params` exceptions in the "Raises"
section in the docstring do not match those in the function body. Raised
exceptions in the docstring: []. Raised exceptions in the body:
['AssertionError (implicitly from the `assert` statement)'].
DOC101: Function `test_dark_with_params_and_inventory_marker`: Docstring
contains fewer arguments than in function signature.
DOC106: Function `test_dark_with_params_and_inventory_marker`: The option
`--arg-type-hints-in-signature` is `True` but there are no argument type hints
in the signature
DOC107: Function `test_dark_with_params_and_inventory_marker`: The option
`--arg-type-hints-in-signature` is `True` but not all args in the signature
have type hints
DOC103: Function `test_dark_with_params_and_inventory_marker`: Docstring
arguments are different from function arguments. (Or could be other formatting
issues: https://jsh9.github.io/pydoclint/violation_codes.html#notes-on-doc103
). Arguments in the function signature but not in the docstring: [option: ,
pytester: ].
- DOC501: Function `test_dark_with_params_and_inventory_marker` has
raise/assert statements, but the docstring does not have a "Raises" section
- DOC503: Function `test_dark_with_params_and_inventory_marker` exceptions
in the "Raises" section in the docstring do not match those in the function
body. Raised exceptions in the docstring: []. Raised exceptions in the body:
['AssertionError (implicitly from the `assert` statement)'].
DOC101: Function `test_dark_with_params_and_host_pattern_marker`:
Docstring contains fewer arguments than in function signature.
DOC106: Function `test_dark_with_params_and_host_pattern_marker`: The
option `--arg-type-hints-in-signature` is `True` but there are no argument type
hints in the signature
DOC107: Function `test_dark_with_params_and_host_pattern_marker`: The
option `--arg-type-hints-in-signature` is `True` but not all args in the
signature have type hints
DOC103: Function `test_dark_with_params_and_host_pattern_marker`:
Docstring arguments are different from function arguments. (Or could be other
formatting issues:
https://jsh9.github.io/pydoclint/violation_codes.html#notes-on-doc103 ).
Arguments in the function signature but not in the docstring: [option: ,
pytester: ].
- DOC501: Function `test_dark_with_params_and_host_pattern_marker` has
raise/assert statements, but the docstring does not have a "Raises" section
- DOC503: Function `test_dark_with_params_and_host_pattern_marker`
exceptions in the "Raises" section in the docstring do not match those in the
function body. Raised exceptions in the docstring: []. Raised exceptions in the
body: ['AssertionError (implicitly from the `assert` statement)'].
DOC101: Function `test_dark_with_debug_enabled`: Docstring contains fewer
arguments than in function signature.
DOC106: Function `test_dark_with_debug_enabled`: The option
`--arg-type-hints-in-signature` is `True` but there are no argument type hints
in the signature
DOC107: Function `test_dark_with_debug_enabled`: The option
`--arg-type-hints-in-signature` is `True` but not all args in the signature
have type hints
DOC103: Function `test_dark_with_debug_enabled`: Docstring arguments are
different from function arguments. (Or could be other formatting issues:
https://jsh9.github.io/pydoclint/violation_codes.html#notes-on-doc103 ).
Arguments in the function signature but not in the docstring: [option: ,
pytester: ].
- DOC501: Function `test_dark_with_debug_enabled` has raise/assert
statements, but the docstring does not have a "Raises" section
- DOC503: Function `test_dark_with_debug_enabled` exceptions in the "Raises"
section in the docstring do not match those in the function body. Raised
exceptions in the docstring: []. Raised exceptions in the body:
['AssertionError (implicitly from the `assert` statement)'].
--------------------
tests/test_module_dispatcher.py
DOC101: Function `test_ansible_module_error`: Docstring contains fewer
arguments than in function signature.
DOC106: Function `test_ansible_module_error`: The option
`--arg-type-hints-in-signature` is `True` but there are no argument type hints
in the signature
DOC107: Function `test_ansible_module_error`: The option
`--arg-type-hints-in-signature` is `True` but not all args in the signature
have type hints
DOC103: Function `test_ansible_module_error`: Docstring arguments are
different from function arguments. (Or could be other formatting issues:
https://jsh9.github.io/pydoclint/violation_codes.html#notes-on-doc103 ).
Arguments in the function signature but not in the docstring: [hosts: ].
- DOC501: Function `test_ansible_module_error` has raise/assert statements,
but the docstring does not have a "Raises" section
- DOC503: Function `test_ansible_module_error` exceptions in the "Raises"
section in the docstring do not match those in the function body. Raised
exceptions in the docstring: []. Raised exceptions in the body:
['AssertionError (implicitly from the `assert` statement)'].
--------------------
tests/test_params.py
DOC101: Function `test_plugin_help`: Docstring contains fewer arguments
than in function signature.
@@ -356,32 +296,18 @@
DOC106: Function `test_report_header`: The option
`--arg-type-hints-in-signature` is `True` but there are no argument type hints
in the signature
DOC107: Function `test_report_header`: The option
`--arg-type-hints-in-signature` is `True` but not all args in the signature
have type hints
DOC103: Function `test_report_header`: Docstring arguments are different
from function arguments. (Or could be other formatting issues:
https://jsh9.github.io/pydoclint/violation_codes.html#notes-on-doc103 ).
Arguments in the function signature but not in the docstring: [option: ,
pytester: ].
- DOC501: Function `test_report_header` has raise/assert statements, but the
docstring does not have a "Raises" section
- DOC503: Function `test_report_header` exceptions in the "Raises" section
in the docstring do not match those in the function body. Raised exceptions in
the docstring: []. Raised exceptions in the body: ['AssertionError (implicitly
from the `assert` statement)'].
DOC101: Function `test_params_not_required_when_not_using_fixture`:
Docstring contains fewer arguments than in function signature.
DOC106: Function `test_params_not_required_when_not_using_fixture`: The
option `--arg-type-hints-in-signature` is `True` but there are no argument type
hints in the signature
DOC107: Function `test_params_not_required_when_not_using_fixture`: The
option `--arg-type-hints-in-signature` is `True` but not all args in the
signature have type hints
DOC103: Function `test_params_not_required_when_not_using_fixture`:
Docstring arguments are different from function arguments. (Or could be other
formatting issues:
https://jsh9.github.io/pydoclint/violation_codes.html#notes-on-doc103 ).
Arguments in the function signature but not in the docstring: [option: ,
pytester: ].
- DOC501: Function `test_params_not_required_when_not_using_fixture` has
raise/assert statements, but the docstring does not have a "Raises" section
- DOC503: Function `test_params_not_required_when_not_using_fixture`
exceptions in the "Raises" section in the docstring do not match those in the
function body. Raised exceptions in the docstring: []. Raised exceptions in the
body: ['AssertionError (implicitly from the `assert` statement)'].
DOC101: Function `test_params_required_when_using_fixture`: Docstring
contains fewer arguments than in function signature.
DOC106: Function `test_params_required_when_using_fixture`: The option
`--arg-type-hints-in-signature` is `True` but there are no argument type hints
in the signature
DOC107: Function `test_params_required_when_using_fixture`: The option
`--arg-type-hints-in-signature` is `True` but not all args in the signature
have type hints
DOC103: Function `test_params_required_when_using_fixture`: Docstring
arguments are different from function arguments. (Or could be other formatting
issues: https://jsh9.github.io/pydoclint/violation_codes.html#notes-on-doc103
). Arguments in the function signature but not in the docstring: [fixture_name:
, option: , pytester: ].
- DOC501: Function `test_params_required_when_using_fixture` has
raise/assert statements, but the docstring does not have a "Raises" section
- DOC503: Function `test_params_required_when_using_fixture` exceptions in
the "Raises" section in the docstring do not match those in the function body.
Raised exceptions in the docstring: []. Raised exceptions in the body:
['AssertionError (implicitly from the `assert` statement)'].
DOC101: Function `test_param_requires_value`: Docstring contains fewer
arguments than in function signature.
DOC106: Function `test_param_requires_value`: The option
`--arg-type-hints-in-signature` is `True` but there are no argument type hints
in the signature
DOC107: Function `test_param_requires_value`: The option
`--arg-type-hints-in-signature` is `True` but not all args in the signature
have type hints
DOC103: Function `test_param_requires_value`: Docstring arguments are
different from function arguments. (Or could be other formatting issues:
https://jsh9.github.io/pydoclint/violation_codes.html#notes-on-doc103 ).
Arguments in the function signature but not in the docstring: [pytester: ,
required_value_parameter: ].
- DOC501: Function `test_param_requires_value` has raise/assert statements,
but the docstring does not have a "Raises" section
- DOC503: Function `test_param_requires_value` exceptions in the "Raises"
section in the docstring do not match those in the function body. Raised
exceptions in the docstring: []. Raised exceptions in the body:
['AssertionError (implicitly from the `assert` statement)'].
- DOC101: Function
`test_params_required_with_inventory_without_host_pattern`: Docstring contains
fewer arguments than in function signature.
- DOC106: Function
`test_params_required_with_inventory_without_host_pattern`: The option
`--arg-type-hints-in-signature` is `True` but there are no argument type hints
in the signature
- DOC107: Function
`test_params_required_with_inventory_without_host_pattern`: The option
`--arg-type-hints-in-signature` is `True` but not all args in the signature
have type hints
- DOC103: Function
`test_params_required_with_inventory_without_host_pattern`: Docstring arguments
are different from function arguments. (Or could be other formatting issues:
https://jsh9.github.io/pydoclint/violation_codes.html#notes-on-doc103 ).
Arguments in the function signature but not in the docstring: [option: ,
pytester: ].
- DOC501: Function
`test_params_required_with_inventory_without_host_pattern` has raise/assert
statements, but the docstring does not have a "Raises" section
- DOC503: Function
`test_params_required_with_inventory_without_host_pattern` exceptions in the
"Raises" section in the docstring do not match those in the function body.
Raised exceptions in the docstring: []. Raised exceptions in the body:
['AssertionError (implicitly from the `assert` statement)'].
--------------------
tests/test_plugin.py
DOC101: Method `MockItem.__init__`: Docstring contains fewer arguments
than in function signature.
@@ -396,12 +322,6 @@
tests/unit/test_unit.py
DOC101: Function `test_inject`: Docstring contains fewer arguments than in
function signature.
DOC103: Function `test_inject`: Docstring arguments are different from
function arguments. (Or could be other formatting issues:
https://jsh9.github.io/pydoclint/violation_codes.html#notes-on-doc103 ).
Arguments in the function signature but not in the docstring: [caplog:
pytest.LogCaptureFixture, monkeypatch: pytest.MonkeyPatch, tmp_path: Path].
- DOC501: Function `test_inject` has raise/assert statements, but the
docstring does not have a "Raises" section
- DOC503: Function `test_inject` exceptions in the "Raises" section in the
docstring do not match those in the function body. Raised exceptions in the
docstring: []. Raised exceptions in the body: ['AssertionError (implicitly from
the `assert` statement)'].
DOC101: Function `test_inject_only`: Docstring contains fewer arguments
than in function signature.
DOC103: Function `test_inject_only`: Docstring arguments are different
from function arguments. (Or could be other formatting issues:
https://jsh9.github.io/pydoclint/violation_codes.html#notes-on-doc103 ).
Arguments in the function signature but not in the docstring: [caplog:
pytest.LogCaptureFixture, monkeypatch: pytest.MonkeyPatch, tmp_path: Path].
- DOC501: Function `test_inject_only` has raise/assert statements, but the
docstring does not have a "Raises" section
- DOC503: Function `test_inject_only` exceptions in the "Raises" section in
the docstring do not match those in the function body. Raised exceptions in the
docstring: []. Raised exceptions in the body: ['AssertionError (implicitly from
the `assert` statement)'].
- DOC501: Function `test_for_params` has raise/assert statements, but the
docstring does not have a "Raises" section
- DOC503: Function `test_for_params` exceptions in the "Raises" section in
the docstring do not match those in the function body. Raised exceptions in the
docstring: []. Raised exceptions in the body: ['AssertionError (implicitly from
the `assert` statement)'].
--------------------
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pytest-ansible-25.4.0/.git/HEAD
new/pytest-ansible-25.4.1/.git/HEAD
--- old/pytest-ansible-25.4.0/.git/HEAD 2025-03-30 04:46:30.000000000 +0200
+++ new/pytest-ansible-25.4.1/.git/HEAD 2025-04-27 08:14:12.000000000 +0200
@@ -1 +1 @@
-8fe768c6931dba59e1bae3aec7f2651c6ff4c2f7
+46cf3143a157f1e443976053818fc2818fd482af
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pytest-ansible-25.4.0/.git/ORIG_HEAD
new/pytest-ansible-25.4.1/.git/ORIG_HEAD
--- old/pytest-ansible-25.4.0/.git/ORIG_HEAD 2025-03-30 04:46:30.000000000
+0200
+++ new/pytest-ansible-25.4.1/.git/ORIG_HEAD 2025-04-27 08:14:12.000000000
+0200
@@ -1 +1 @@
-8fe768c6931dba59e1bae3aec7f2651c6ff4c2f7
+46cf3143a157f1e443976053818fc2818fd482af
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/pytest-ansible-25.4.0/.git/hooks/applypatch-msg.sample
new/pytest-ansible-25.4.1/.git/hooks/applypatch-msg.sample
--- old/pytest-ansible-25.4.0/.git/hooks/applypatch-msg.sample 2025-03-30
04:46:30.000000000 +0200
+++ new/pytest-ansible-25.4.1/.git/hooks/applypatch-msg.sample 2025-04-27
08:14:12.000000000 +0200
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/nix/store/mc4485g4apaqzjx59dsmqscls1zc3p2w-bash-5.2p37/bin/bash
#
# An example hook script to check the commit log message taken by
# applypatch from an e-mail message.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pytest-ansible-25.4.0/.git/hooks/commit-msg.sample
new/pytest-ansible-25.4.1/.git/hooks/commit-msg.sample
--- old/pytest-ansible-25.4.0/.git/hooks/commit-msg.sample 2025-03-30
04:46:30.000000000 +0200
+++ new/pytest-ansible-25.4.1/.git/hooks/commit-msg.sample 2025-04-27
08:14:12.000000000 +0200
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/nix/store/mc4485g4apaqzjx59dsmqscls1zc3p2w-bash-5.2p37/bin/bash
#
# An example hook script to check the commit log message.
# Called by "git commit" with one argument, the name of the file
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/pytest-ansible-25.4.0/.git/hooks/fsmonitor-watchman.sample
new/pytest-ansible-25.4.1/.git/hooks/fsmonitor-watchman.sample
--- old/pytest-ansible-25.4.0/.git/hooks/fsmonitor-watchman.sample
2025-03-30 04:46:30.000000000 +0200
+++ new/pytest-ansible-25.4.1/.git/hooks/fsmonitor-watchman.sample
2025-04-27 08:14:12.000000000 +0200
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/nix/store/q29g3j8qnyl14nv40rrk62g7wxbaz80q-perl-5.40.0/bin/perl
use strict;
use warnings;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pytest-ansible-25.4.0/.git/hooks/post-update.sample
new/pytest-ansible-25.4.1/.git/hooks/post-update.sample
--- old/pytest-ansible-25.4.0/.git/hooks/post-update.sample 2025-03-30
04:46:30.000000000 +0200
+++ new/pytest-ansible-25.4.1/.git/hooks/post-update.sample 2025-04-27
08:14:12.000000000 +0200
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/nix/store/mc4485g4apaqzjx59dsmqscls1zc3p2w-bash-5.2p37/bin/bash
#
# An example hook script to prepare a packed repository for use over
# dumb transports.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/pytest-ansible-25.4.0/.git/hooks/pre-applypatch.sample
new/pytest-ansible-25.4.1/.git/hooks/pre-applypatch.sample
--- old/pytest-ansible-25.4.0/.git/hooks/pre-applypatch.sample 2025-03-30
04:46:30.000000000 +0200
+++ new/pytest-ansible-25.4.1/.git/hooks/pre-applypatch.sample 2025-04-27
08:14:12.000000000 +0200
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/nix/store/mc4485g4apaqzjx59dsmqscls1zc3p2w-bash-5.2p37/bin/bash
#
# An example hook script to verify what is about to be committed
# by applypatch from an e-mail message.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pytest-ansible-25.4.0/.git/hooks/pre-commit.sample
new/pytest-ansible-25.4.1/.git/hooks/pre-commit.sample
--- old/pytest-ansible-25.4.0/.git/hooks/pre-commit.sample 2025-03-30
04:46:30.000000000 +0200
+++ new/pytest-ansible-25.4.1/.git/hooks/pre-commit.sample 2025-04-27
08:14:12.000000000 +0200
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/nix/store/mc4485g4apaqzjx59dsmqscls1zc3p2w-bash-5.2p37/bin/bash
#
# An example hook script to verify what is about to be committed.
# Called by "git commit" with no arguments. The hook should
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/pytest-ansible-25.4.0/.git/hooks/pre-merge-commit.sample
new/pytest-ansible-25.4.1/.git/hooks/pre-merge-commit.sample
--- old/pytest-ansible-25.4.0/.git/hooks/pre-merge-commit.sample
2025-03-30 04:46:30.000000000 +0200
+++ new/pytest-ansible-25.4.1/.git/hooks/pre-merge-commit.sample
2025-04-27 08:14:12.000000000 +0200
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/nix/store/mc4485g4apaqzjx59dsmqscls1zc3p2w-bash-5.2p37/bin/bash
#
# An example hook script to verify what is about to be committed.
# Called by "git merge" with no arguments. The hook should
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pytest-ansible-25.4.0/.git/hooks/pre-push.sample
new/pytest-ansible-25.4.1/.git/hooks/pre-push.sample
--- old/pytest-ansible-25.4.0/.git/hooks/pre-push.sample 2025-03-30
04:46:30.000000000 +0200
+++ new/pytest-ansible-25.4.1/.git/hooks/pre-push.sample 2025-04-27
08:14:12.000000000 +0200
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/nix/store/mc4485g4apaqzjx59dsmqscls1zc3p2w-bash-5.2p37/bin/bash
# An example hook script to verify what is about to be pushed. Called by "git
# push" after it has checked the remote status, but before anything has been
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pytest-ansible-25.4.0/.git/hooks/pre-rebase.sample
new/pytest-ansible-25.4.1/.git/hooks/pre-rebase.sample
--- old/pytest-ansible-25.4.0/.git/hooks/pre-rebase.sample 2025-03-30
04:46:30.000000000 +0200
+++ new/pytest-ansible-25.4.1/.git/hooks/pre-rebase.sample 2025-04-27
08:14:12.000000000 +0200
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/nix/store/mc4485g4apaqzjx59dsmqscls1zc3p2w-bash-5.2p37/bin/bash
#
# Copyright (c) 2006, 2008 Junio C Hamano
#
@@ -65,7 +65,7 @@
fi
else
not_in_next=`git rev-list --pretty=oneline ^${publish} "$topic"`
- /usr/bin/perl -e '
+ /nix/store/q29g3j8qnyl14nv40rrk62g7wxbaz80q-perl-5.40.0/bin/perl -e '
my $topic = $ARGV[0];
my $msg = "* $topic has commits already merged to public
branch:\n";
my (%not_in_next) = map {
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pytest-ansible-25.4.0/.git/hooks/pre-receive.sample
new/pytest-ansible-25.4.1/.git/hooks/pre-receive.sample
--- old/pytest-ansible-25.4.0/.git/hooks/pre-receive.sample 2025-03-30
04:46:30.000000000 +0200
+++ new/pytest-ansible-25.4.1/.git/hooks/pre-receive.sample 2025-04-27
08:14:12.000000000 +0200
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/nix/store/mc4485g4apaqzjx59dsmqscls1zc3p2w-bash-5.2p37/bin/bash
#
# An example hook script to make use of push options.
# The example simply echoes all push options that start with 'echoback='
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/pytest-ansible-25.4.0/.git/hooks/prepare-commit-msg.sample
new/pytest-ansible-25.4.1/.git/hooks/prepare-commit-msg.sample
--- old/pytest-ansible-25.4.0/.git/hooks/prepare-commit-msg.sample
2025-03-30 04:46:30.000000000 +0200
+++ new/pytest-ansible-25.4.1/.git/hooks/prepare-commit-msg.sample
2025-04-27 08:14:12.000000000 +0200
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/nix/store/mc4485g4apaqzjx59dsmqscls1zc3p2w-bash-5.2p37/bin/bash
#
# An example hook script to prepare the commit log message.
# Called by "git commit" with the name of the file that has the
@@ -24,11 +24,11 @@
COMMIT_SOURCE=$2
SHA1=$3
-/usr/bin/perl -i.bak -ne 'print unless(m/^. Please enter the commit
message/..m/^#$/)' "$COMMIT_MSG_FILE"
+/nix/store/q29g3j8qnyl14nv40rrk62g7wxbaz80q-perl-5.40.0/bin/perl -i.bak -ne
'print unless(m/^. Please enter the commit message/..m/^#$/)' "$COMMIT_MSG_FILE"
# case "$COMMIT_SOURCE,$SHA1" in
# ,|template,)
-# /usr/bin/perl -i.bak -pe '
+# /nix/store/q29g3j8qnyl14nv40rrk62g7wxbaz80q-perl-5.40.0/bin/perl -i.bak
-pe '
# print "\n" . `git diff --cached --name-status -r`
# if /^#/ && $first++ == 0' "$COMMIT_MSG_FILE" ;;
# *) ;;
@@ -38,5 +38,5 @@
# git interpret-trailers --in-place --trailer "$SOB" "$COMMIT_MSG_FILE"
# if test -z "$COMMIT_SOURCE"
# then
-# /usr/bin/perl -i.bak -pe 'print "\n" if !$first_line++' "$COMMIT_MSG_FILE"
+# /nix/store/q29g3j8qnyl14nv40rrk62g7wxbaz80q-perl-5.40.0/bin/perl -i.bak
-pe 'print "\n" if !$first_line++' "$COMMIT_MSG_FILE"
# fi
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/pytest-ansible-25.4.0/.git/hooks/push-to-checkout.sample
new/pytest-ansible-25.4.1/.git/hooks/push-to-checkout.sample
--- old/pytest-ansible-25.4.0/.git/hooks/push-to-checkout.sample
2025-03-30 04:46:30.000000000 +0200
+++ new/pytest-ansible-25.4.1/.git/hooks/push-to-checkout.sample
2025-04-27 08:14:12.000000000 +0200
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/nix/store/mc4485g4apaqzjx59dsmqscls1zc3p2w-bash-5.2p37/bin/bash
# An example hook script to update a checked-out tree on a git push.
#
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/pytest-ansible-25.4.0/.git/hooks/sendemail-validate.sample
new/pytest-ansible-25.4.1/.git/hooks/sendemail-validate.sample
--- old/pytest-ansible-25.4.0/.git/hooks/sendemail-validate.sample
2025-03-30 04:46:30.000000000 +0200
+++ new/pytest-ansible-25.4.1/.git/hooks/sendemail-validate.sample
2025-04-27 08:14:12.000000000 +0200
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/nix/store/mc4485g4apaqzjx59dsmqscls1zc3p2w-bash-5.2p37/bin/bash
# An example hook script to validate a patch (and/or patch series) before
# sending it via email.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pytest-ansible-25.4.0/.git/hooks/update.sample
new/pytest-ansible-25.4.1/.git/hooks/update.sample
--- old/pytest-ansible-25.4.0/.git/hooks/update.sample 2025-03-30
04:46:30.000000000 +0200
+++ new/pytest-ansible-25.4.1/.git/hooks/update.sample 2025-04-27
08:14:12.000000000 +0200
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/nix/store/mc4485g4apaqzjx59dsmqscls1zc3p2w-bash-5.2p37/bin/bash
#
# An example hook script to block unannotated tags from entering.
# Called by "git receive-pack" with arguments: refname sha1-old sha1-new
Binary files old/pytest-ansible-25.4.0/.git/index and
new/pytest-ansible-25.4.1/.git/index differ
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pytest-ansible-25.4.0/.git/logs/HEAD
new/pytest-ansible-25.4.1/.git/logs/HEAD
--- old/pytest-ansible-25.4.0/.git/logs/HEAD 2025-03-30 04:46:30.000000000
+0200
+++ new/pytest-ansible-25.4.1/.git/logs/HEAD 2025-04-27 08:14:12.000000000
+0200
@@ -1,2 +1,2 @@
-0000000000000000000000000000000000000000
8fe768c6931dba59e1bae3aec7f2651c6ff4c2f7 ojkastl <ojkastl@sarabi.(none)>
1743530343 +0000 clone: from
https://github.com/ansible-community/pytest-ansible
-8fe768c6931dba59e1bae3aec7f2651c6ff4c2f7
8fe768c6931dba59e1bae3aec7f2651c6ff4c2f7 ojkastl <ojkastl@sarabi.(none)>
1743530343 +0000 checkout: moving from main to v25.4.0
+0000000000000000000000000000000000000000
46cf3143a157f1e443976053818fc2818fd482af Johannes Kastl
<[email protected]> 1745956022 +0200 clone: from
https://github.com/ansible-community/pytest-ansible
+46cf3143a157f1e443976053818fc2818fd482af
46cf3143a157f1e443976053818fc2818fd482af Johannes Kastl
<[email protected]> 1745956022 +0200 checkout: moving
from main to v25.4.1
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pytest-ansible-25.4.0/.git/logs/refs/heads/main
new/pytest-ansible-25.4.1/.git/logs/refs/heads/main
--- old/pytest-ansible-25.4.0/.git/logs/refs/heads/main 2025-03-30
04:46:30.000000000 +0200
+++ new/pytest-ansible-25.4.1/.git/logs/refs/heads/main 2025-04-27
08:14:12.000000000 +0200
@@ -1 +1 @@
-0000000000000000000000000000000000000000
8fe768c6931dba59e1bae3aec7f2651c6ff4c2f7 ojkastl <ojkastl@sarabi.(none)>
1743530343 +0000 clone: from
https://github.com/ansible-community/pytest-ansible
+0000000000000000000000000000000000000000
46cf3143a157f1e443976053818fc2818fd482af Johannes Kastl
<[email protected]> 1745956022 +0200 clone: from
https://github.com/ansible-community/pytest-ansible
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/pytest-ansible-25.4.0/.git/logs/refs/remotes/origin/HEAD
new/pytest-ansible-25.4.1/.git/logs/refs/remotes/origin/HEAD
--- old/pytest-ansible-25.4.0/.git/logs/refs/remotes/origin/HEAD
2025-03-30 04:46:30.000000000 +0200
+++ new/pytest-ansible-25.4.1/.git/logs/refs/remotes/origin/HEAD
2025-04-27 08:14:12.000000000 +0200
@@ -1 +1 @@
-0000000000000000000000000000000000000000
8fe768c6931dba59e1bae3aec7f2651c6ff4c2f7 ojkastl <ojkastl@sarabi.(none)>
1743530343 +0000 clone: from
https://github.com/ansible-community/pytest-ansible
+0000000000000000000000000000000000000000
46cf3143a157f1e443976053818fc2818fd482af Johannes Kastl
<[email protected]> 1745956022 +0200 clone: from
https://github.com/ansible-community/pytest-ansible
Binary files
old/pytest-ansible-25.4.0/.git/objects/pack/pack-7c8f3d6fd36550b0ef094e80d19273bd65c351bc.idx
and
new/pytest-ansible-25.4.1/.git/objects/pack/pack-7c8f3d6fd36550b0ef094e80d19273bd65c351bc.idx
differ
Binary files
old/pytest-ansible-25.4.0/.git/objects/pack/pack-7c8f3d6fd36550b0ef094e80d19273bd65c351bc.pack
and
new/pytest-ansible-25.4.1/.git/objects/pack/pack-7c8f3d6fd36550b0ef094e80d19273bd65c351bc.pack
differ
Binary files
old/pytest-ansible-25.4.0/.git/objects/pack/pack-7c8f3d6fd36550b0ef094e80d19273bd65c351bc.rev
and
new/pytest-ansible-25.4.1/.git/objects/pack/pack-7c8f3d6fd36550b0ef094e80d19273bd65c351bc.rev
differ
Binary files
old/pytest-ansible-25.4.0/.git/objects/pack/pack-a7982fd2155e397224e272f0cc6e58fe1f6348a8.idx
and
new/pytest-ansible-25.4.1/.git/objects/pack/pack-a7982fd2155e397224e272f0cc6e58fe1f6348a8.idx
differ
Binary files
old/pytest-ansible-25.4.0/.git/objects/pack/pack-a7982fd2155e397224e272f0cc6e58fe1f6348a8.pack
and
new/pytest-ansible-25.4.1/.git/objects/pack/pack-a7982fd2155e397224e272f0cc6e58fe1f6348a8.pack
differ
Binary files
old/pytest-ansible-25.4.0/.git/objects/pack/pack-a7982fd2155e397224e272f0cc6e58fe1f6348a8.rev
and
new/pytest-ansible-25.4.1/.git/objects/pack/pack-a7982fd2155e397224e272f0cc6e58fe1f6348a8.rev
differ
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pytest-ansible-25.4.0/.git/packed-refs
new/pytest-ansible-25.4.1/.git/packed-refs
--- old/pytest-ansible-25.4.0/.git/packed-refs 2025-03-30 04:46:30.000000000
+0200
+++ new/pytest-ansible-25.4.1/.git/packed-refs 2025-04-27 08:14:12.000000000
+0200
@@ -1,7 +1,6 @@
# pack-refs with: peeled fully-peeled sorted
64d8b204b589dd76babddd103f31047768871c7a refs/remotes/origin/coverage_used
-b60d140465d6856443a6c8a72fb76f8caa4aaebb refs/remotes/origin/fix/stuff
-8fe768c6931dba59e1bae3aec7f2651c6ff4c2f7 refs/remotes/origin/main
+46cf3143a157f1e443976053818fc2818fd482af refs/remotes/origin/main
15f680480c7bac9ef1694fc7334d8a42aa158c75 refs/remotes/origin/mkdocs
cbd13e8b0fde4e5efa9d240ac1cf065b357be0d1 refs/remotes/origin/pyproject-pytest
1bfd2277ea850f559d2a82c89ecf7046b658ee07 refs/remotes/origin/revert-159-master
@@ -40,6 +39,7 @@
efe1219706b845be406e017844b78f026824fcfa refs/tags/v24.9.0
4be84c109b63aba5efd2195d5d1646d7d2547336 refs/tags/v25.1.0
8fe768c6931dba59e1bae3aec7f2651c6ff4c2f7 refs/tags/v25.4.0
+46cf3143a157f1e443976053818fc2818fd482af refs/tags/v25.4.1
cfcb2520db3d18f220802e5adc62eee73891c891 refs/tags/v3.0.0
e03f575aa9334884c65c4ae3b82e383251e40a32 refs/tags/v3.1.0
f8ef52f46554cb4950a2cfa7ef5a2ce9d0865c65 refs/tags/v3.1.1
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pytest-ansible-25.4.0/.git/refs/heads/main
new/pytest-ansible-25.4.1/.git/refs/heads/main
--- old/pytest-ansible-25.4.0/.git/refs/heads/main 2025-03-30
04:46:30.000000000 +0200
+++ new/pytest-ansible-25.4.1/.git/refs/heads/main 2025-04-27
08:14:12.000000000 +0200
@@ -1 +1 @@
-8fe768c6931dba59e1bae3aec7f2651c6ff4c2f7
+46cf3143a157f1e443976053818fc2818fd482af
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pytest-ansible-25.4.0/.pre-commit-config.yaml
new/pytest-ansible-25.4.1/.pre-commit-config.yaml
--- old/pytest-ansible-25.4.0/.pre-commit-config.yaml 2025-03-30
04:46:30.000000000 +0200
+++ new/pytest-ansible-25.4.1/.pre-commit-config.yaml 2025-04-27
08:14:12.000000000 +0200
@@ -48,7 +48,7 @@
- id: tox-ini-fmt
- repo: https://github.com/astral-sh/ruff-pre-commit
- rev: v0.9.10
+ rev: v0.11.4
hooks:
- id: ruff
args:
@@ -65,7 +65,7 @@
name: Spell check with cspell
- repo: https://github.com/jsh9/pydoclint
- rev: "0.6.2"
+ rev: "0.6.5"
hooks:
- id: pydoclint
# This allows automatic reduction of the baseline file when needed.
@@ -73,7 +73,7 @@
pass_filenames: false
- repo: https://github.com/pycqa/pylint.git
- rev: v3.3.5
+ rev: v3.3.6
hooks:
- id: pylint
args:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pytest-ansible-25.4.0/.python-version
new/pytest-ansible-25.4.1/.python-version
--- old/pytest-ansible-25.4.0/.python-version 1970-01-01 01:00:00.000000000
+0100
+++ new/pytest-ansible-25.4.1/.python-version 2025-04-27 08:14:12.000000000
+0200
@@ -0,0 +1,3 @@
+3.10
+
+# Needed by dependabot, see
https://github.com/dependabot/dependabot-core/issues/1455
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pytest-ansible-25.4.0/mise.toml
new/pytest-ansible-25.4.1/mise.toml
--- old/pytest-ansible-25.4.0/mise.toml 1970-01-01 01:00:00.000000000 +0100
+++ new/pytest-ansible-25.4.1/mise.toml 2025-04-27 08:14:12.000000000 +0200
@@ -0,0 +1,2 @@
+[settings]
+idiomatic_version_file_disable_tools = ["python"]
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/pytest-ansible-25.4.0/src/pytest_ansible/host_manager/base.py
new/pytest-ansible-25.4.1/src/pytest_ansible/host_manager/base.py
--- old/pytest-ansible-25.4.0/src/pytest_ansible/host_manager/base.py
2025-03-30 04:46:30.000000000 +0200
+++ new/pytest-ansible-25.4.1/src/pytest_ansible/host_manager/base.py
2025-04-27 08:14:12.000000000 +0200
@@ -59,7 +59,11 @@
return extra_inventory_groups
def check_required_kwargs(self, **kwargs): # type: ignore[no-untyped-def]
# noqa: ANN003, ANN201, ARG002
- """Raise a TypeError if any required kwargs are missing."""
+ """Raise a TypeError if any required kwargs are missing.
+
+ Raises:
+ TypeError: If any required kwargs are missing.
+ """
for kwarg in self._required_kwargs:
if kwarg not in self.options:
msg = f"Missing required keyword argument '{kwarg}'"
@@ -78,7 +82,11 @@
return False
def __getitem__(self, item): # type: ignore[no-untyped-def] # noqa:
ANN001, ANN204
- """Return a ModuleDispatcher instance described the provided `item`."""
+ """Return a ModuleDispatcher instance described the provided `item`.
+
+ Raises:
+ KeyError: If the item does not exist.
+ """
# Handle slicing
if isinstance(item, slice):
new_item = "all["
@@ -97,7 +105,11 @@
return self._dispatcher(**self.options) # type:
ignore[no-untyped-call]
def __getattr__(self, attr): # type: ignore[no-untyped-def] # noqa:
ANN001, ANN204
- """Return a ModuleDispatcher instance described the provided `attr`."""
+ """Return a ModuleDispatcher instance described the provided `attr`.
+
+ Raises:
+ AttributeError: If the attribute does not exist.
+ """
if not self.has_matching_inventory(attr): # type:
ignore[no-untyped-call]
msg = f"type HostManager has no attribute '{attr}'"
raise AttributeError(msg)
@@ -134,6 +146,10 @@
return self.has_matching_inventory(item) # type:
ignore[no-any-return, no-untyped-call]
def initialize_inventory(self): # type: ignore[no-untyped-def] # noqa:
ANN201
- """Fixme."""
+ """Fixme.
+
+ Raises:
+ NotImplementedError: Must be implemented by sub-class.
+ """
msg = "Must be implemented by sub-class"
raise NotImplementedError(msg)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/pytest-ansible-25.4.0/src/pytest_ansible/host_manager/utils.py
new/pytest-ansible-25.4.1/src/pytest_ansible/host_manager/utils.py
--- old/pytest-ansible-25.4.0/src/pytest_ansible/host_manager/utils.py
2025-03-30 04:46:30.000000000 +0200
+++ new/pytest-ansible-25.4.1/src/pytest_ansible/host_manager/utils.py
2025-04-27 08:14:12.000000000 +0200
@@ -20,6 +20,9 @@
Returns:
HostManager: A HostManager instance.
+
+ Raises:
+ RuntimeError: If no supported HostManager is found.
"""
if has_ansible_v213:
from pytest_ansible.host_manager.v213 import HostManagerV213 as
HostManager
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/pytest-ansible-25.4.0/src/pytest_ansible/module_dispatcher/__init__.py
new/pytest-ansible-25.4.1/src/pytest_ansible/module_dispatcher/__init__.py
--- old/pytest-ansible-25.4.0/src/pytest_ansible/module_dispatcher/__init__.py
2025-03-30 04:46:30.000000000 +0200
+++ new/pytest-ansible-25.4.1/src/pytest_ansible/module_dispatcher/__init__.py
2025-04-27 08:14:12.000000000 +0200
@@ -56,7 +56,8 @@
def __getattr__(self, name): # type: ignore[no-untyped-def] # noqa:
ANN001, ANN204
"""Run the ansible module matching the provided `name`.
- Raise `AnsibleModuleError` when no such module exists.
+ Raises:
+ AnsibleModuleError: when no such module exists.
"""
resolved = self.has_module(name)
if not resolved:
@@ -66,7 +67,11 @@
return self._run
def check_required_kwargs(self, **kwargs): # type: ignore[no-untyped-def]
# noqa: ANN003, ANN201, ARG002
- """Raise a TypeError if any required kwargs are missing."""
+ """Check that all required kwargs are present.
+
+ Raises:
+ TypeError: if any required kwargs are missing.
+ """
for kwarg in self.required_kwargs:
if kwarg not in self.options:
msg = f"Missing required keyword argument '{kwarg}'"
@@ -82,6 +87,10 @@
@abc.abstractmethod
def _run(self, *args, **kwargs): # type: ignore[no-untyped-def] # noqa:
ANN002, ANN003, ANN202
- """Raise a runtime error, unless implemented by sub-classes."""
+ """Raise a runtime error, unless implemented by sub-classes.
+
+ Raises:
+ RuntimeError: Must be implemented by a sub-class.
+ """
msg = "Must be implemented by a sub-class"
raise RuntimeError(msg)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/pytest-ansible-25.4.0/src/pytest_ansible/module_dispatcher/v213.py
new/pytest-ansible-25.4.1/src/pytest_ansible/module_dispatcher/v213.py
--- old/pytest-ansible-25.4.0/src/pytest_ansible/module_dispatcher/v213.py
2025-03-30 04:46:30.000000000 +0200
+++ new/pytest-ansible-25.4.1/src/pytest_ansible/module_dispatcher/v213.py
2025-04-27 08:14:12.000000000 +0200
@@ -78,7 +78,11 @@
)
def __init__(self, **kwargs) -> None: # type: ignore[no-untyped-def] #
noqa: ANN003
- """Fixme."""
+ """Fixme.
+
+ Raises:
+ ImportError: If ansible version is not 2.13 or newer.
+ """
super().__init__(**kwargs)
if not has_ansible_v213:
msg = "Only supported with ansible-2.13 and newer"
@@ -109,7 +113,12 @@
return str(found.resolved_fqcn)
def _run(self, *module_args, **complex_args): # type:
ignore[no-untyped-def] # noqa: ANN002, ANN003, ANN202, C901, PLR0912, PLR0915
- """Execute an ansible adhoc command returning the result in a
AdhocResult object."""
+ """Execute an ansible adhoc command returning the result in a
AdhocResult object.
+
+ Raises:
+ ansible.errors.AnsibleError: If the host is unreachable.
+ AnsibleConnectionFailure: If the host is unreachable.
+ """
# Assemble module argument string
if module_args:
complex_args.update({"_raw_params": " ".join(module_args)})
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pytest-ansible-25.4.0/src/pytest_ansible/molecule.py
new/pytest-ansible-25.4.1/src/pytest_ansible/molecule.py
--- old/pytest-ansible-25.4.0/src/pytest_ansible/molecule.py 2025-03-30
04:46:30.000000000 +0200
+++ new/pytest-ansible-25.4.1/src/pytest_ansible/molecule.py 2025-04-27
08:14:12.000000000 +0200
@@ -94,7 +94,7 @@
try:
import selinux # noqa: F401 pylint:
disable=import-outside-toplevel
except ImportError:
- logging.exception(
+ logger.exception(
"It appears that you are trying to use "
"molecule with a Python interpreter that does not have the
"
"libselinux python bindings installed. These can only be "
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pytest-ansible-25.4.0/src/pytest_ansible/plugin.py
new/pytest-ansible-25.4.1/src/pytest_ansible/plugin.py
--- old/pytest-ansible-25.4.0/src/pytest_ansible/plugin.py 2025-03-30
04:46:30.000000000 +0200
+++ new/pytest-ansible-25.4.1/src/pytest_ansible/plugin.py 2025-04-27
08:14:12.000000000 +0200
@@ -74,7 +74,7 @@
"--ansible-host-pattern",
action="store",
dest="ansible_host_pattern",
- default=None,
+ default="localhost",
metavar="ANSIBLE_HOST_PATTERN",
help="ansible host pattern (default: %(default)s)",
)
@@ -201,8 +201,9 @@
# Configure the logger.
level = log_map.get(config.option.verbose)
- logging.basicConfig(level=level)
- logging.debug("Logging initialized")
+ if level is not None:
+ logger.setLevel(level)
+ logger.debug("Logging initialized")
assert config.pluginmanager.register(PyTestAnsiblePlugin(config),
"ansible") # noqa: S101
@@ -233,7 +234,11 @@
def pytest_generate_tests(metafunc): # type: ignore[no-untyped-def] # noqa:
ANN001, ANN201
- """Generate tests when specific `ansible_*` fixtures are used by tests."""
+ """Generate tests when specific `ansible_*` fixtures are used by tests.
+
+ Raises:
+ pytest.UsageError: If the required --ansible-* parameters were not
provided.
+ """
if "ansible_host" in metafunc.fixturenames:
# assert required --ansible-* parameters were used
PyTestAnsiblePlugin.assert_required_ansible_parameters(metafunc.config) #
type: ignore[no-untyped-call]
@@ -412,15 +417,12 @@
@staticmethod
def assert_required_ansible_parameters(config): # type:
ignore[no-untyped-def] # noqa: ANN001, ANN205
- """Assert whether the required --ansible-* parameters were provided."""
- errors = []
+ """Assert whether the required --ansible-* parameters were provided.
- # Verify --ansible-host-pattern was provided
- ansible_hostname = config.getoption("ansible_host_pattern")
- if ansible_hostname is None or ansible_hostname == "":
- errors.append(
- "Missing required parameter
--ansible-host-pattern/--host-pattern",
- )
+ Raises:
+ pytest.UsageError: If the required --ansible-* parameters were not
provided.
+ """
+ errors = []
# NOTE: I don't think this will ever catch issues since
ansible_inventory
# defaults to '/etc/ansible/hosts'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pytest-ansible-25.4.0/src/pytest_ansible/results.py
new/pytest-ansible-25.4.1/src/pytest_ansible/results.py
--- old/pytest-ansible-25.4.0/src/pytest_ansible/results.py 2025-03-30
04:46:30.000000000 +0200
+++ new/pytest-ansible-25.4.1/src/pytest_ansible/results.py 2025-04-27
08:14:12.000000000 +0200
@@ -54,13 +54,21 @@
setattr(self, kwarg, kwargs.get(kwarg))
def __getitem__(self, item): # type: ignore[no-untyped-def] # noqa:
ANN001, ANN204
- """Return a ModuleResult instance matching the provided `item`."""
+ """Return a ModuleResult instance matching the provided `item`.
+
+ Raises:
+ KeyError: If the item does not exist.
+ """
if item in self.contacted:
return ModuleResult(**self.contacted[item])
raise KeyError(item)
def __getattr__(self, attr): # type: ignore[no-untyped-def] # noqa:
ANN001, ANN204
- """Return a ModuleResult instance matching the provided `attr`."""
+ """Return a ModuleResult instance matching the provided `attr`.
+
+ Raises:
+ AttributeError: If the attribute does not exist.
+ """
if attr in self.contacted:
return ModuleResult(**self.contacted[attr])
msg = f"type AdHocResult has no attribute '{attr}'"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pytest-ansible-25.4.0/tests/test_func.py
new/pytest-ansible-25.4.1/tests/test_func.py
--- old/pytest-ansible-25.4.0/tests/test_func.py 1970-01-01
01:00:00.000000000 +0100
+++ new/pytest-ansible-25.4.1/tests/test_func.py 2025-04-27
08:14:12.000000000 +0200
@@ -0,0 +1,17 @@
+"""Functional tests for pytest-ansible."""
+
+from __future__ import annotations
+
+from typing import Any
+
+import pytest
+
+
[email protected](inventory="local,", connection="local",
host_pattern="all")
+def test_func(ansible_module: Any) -> None: # noqa: ANN401
+ """Sample test for ansible module.
+
+ Args:
+ ansible_module: The ansible module.
+ """
+ ansible_module.ping()
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pytest-ansible-25.4.0/tests/test_params.py
new/pytest-ansible-25.4.1/tests/test_params.py
--- old/pytest-ansible-25.4.0/tests/test_params.py 2025-03-30
04:46:30.000000000 +0200
+++ new/pytest-ansible-25.4.1/tests/test_params.py 2025-04-27
08:14:12.000000000 +0200
@@ -87,7 +87,7 @@
),
)
def test_params_required_when_using_fixture(pytester, option, fixture_name):
# type: ignore[no-untyped-def] # noqa: ANN001, ANN201
- """Verify the ansible parameters are required if the fixture is used."""
+ """Verify that ansible parameters are not required if the fixture is
used."""
src = f"""
import pytest
def test_func({fixture_name}):
@@ -96,12 +96,7 @@
pytester.makepyfile(src)
result = pytester.runpytest(*option.args)
- assert result.ret == EXIT_USAGEERROR
- result.stderr.fnmatch_lines(
- [
- "ERROR: Missing required parameter
--ansible-host-pattern/--host-pattern",
- ],
- )
+ assert result.ret == EXIT_OK
@pytest.mark.parametrize(
@@ -109,8 +104,6 @@
(
"--ansible-inventory",
"--inventory",
- "--ansible-host-pattern",
- "--host-pattern",
"--ansible-connection",
"--connection",
"--ansible-user",
@@ -132,23 +125,6 @@
)
-def test_params_required_with_inventory_without_host_pattern(pytester,
option): # type: ignore[no-untyped-def] # noqa: ANN001, ANN201
- """Verify that a host pattern is required when an inventory is supplied."""
- src = """
- import pytest
- def test_func(ansible_module):
- assert True
- """
- pytester.makepyfile(src)
- result = pytester.runpytest(*[*option.args, "--ansible-inventory",
"local,"])
- assert result.ret == EXIT_USAGEERROR
- result.stderr.fnmatch_lines(
- [
- "ERROR: Missing required parameter
--ansible-host-pattern/--host-pattern",
- ],
- )
-
-
@pytest.mark.requires_ansible_v2
def test_params_required_without_inventory_with_host_pattern_v2(pytester,
option): # type: ignore[no-untyped-def] # noqa: ANN001, ANN201, D103
src = """
++++++ pytest-ansible.obsinfo ++++++
--- /var/tmp/diff_new_pack.76UxJQ/_old 2025-04-30 19:04:18.274131503 +0200
+++ /var/tmp/diff_new_pack.76UxJQ/_new 2025-04-30 19:04:18.278131669 +0200
@@ -1,5 +1,5 @@
name: pytest-ansible
-version: 25.4.0
-mtime: 1743302790
-commit: 8fe768c6931dba59e1bae3aec7f2651c6ff4c2f7
+version: 25.4.1
+mtime: 1745734452
+commit: 46cf3143a157f1e443976053818fc2818fd482af