You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ansible/test/lib/ansible_test/_internal/commands/sanity
Matt Clay 47ab59753c
Clean up release script (#81488)
* Enable mypy for the entire packaging directory

* Return CompletedProcess only when capturing output

This allows stdout/stderr on CompletedProcess to be `str` instead of `str | None`.
The unused args on CompletedProcess have been removed.
Overload type hints have been added to reflect these changes.

* Relax return type on ensure_venv

This improves consistency with its usage, since `run` accepts `env` of `dict[str, t.Any]`.
Also removed unnecssary `str()` usage when updating `env`.

* Fix type hint on suppress_when

* Fix callable annotation

* Add type hint for command_parser

PyCharm complains about using a protected member, and also that it can't find the type in the type stubs.
However, mypy properly recognizes the type.

* Avoid unnecessary TypeVar usage
2 years ago
..
__init__.py ansible-test - Pre-build PyYAML wheels (#81300) 2 years ago
ansible_doc.py ansible-test - Fix sanity traceback with `-e` opt (#81271) 2 years ago
bin_symlinks.py ansible-test - Improve code formatting (#79983) 3 years ago
compile.py ansible-test - Improve code formatting (#79983) 3 years ago
ignores.py ansible-test - Improve code formatting (#79983) 3 years ago
import.py ansible-test - Fix sanity traceback with `-e` opt (#81271) 2 years ago
integration_aliases.py ansible-test - Improve code formatting (#79983) 3 years ago
mypy.py Clean up release script (#81488) 2 years ago
pep8.py ansible-test - Improve code formatting (#79983) 3 years ago
pslint.py ansible-test - Improve code formatting (#79983) 3 years ago
pylint.py Pylint deprecated comment checker (#81071) 3 years ago
shellcheck.py ansible-test - Improve code formatting (#79983) 3 years ago
validate_modules.py ansible-test - Avoid using atexit module (#81096) 3 years ago
yamllint.py ansible-test - Improve code formatting (#79983) 3 years ago