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
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
1 year ago
..
ci ansible-test - Use raise from to handle exceptions (#80905) 2 years ago
classification Omit pre-built man pages from sdist (#81395) 1 year ago
cli ansible-test - Fix timeout handling (#80764) 2 years ago
commands Clean up release script (#81488) 1 year ago
compat ansible-test - Improve code formatting (#79983) 2 years ago
dev ansible-test - Improve code formatting (#79983) 2 years ago
provider ansible-test - Update source layout detection (#81418) 1 year ago
__init__.py ansible-test - Avoid using atexit module (#81096) 1 year ago
ansible_util.py ansible-test - Update source layout detection (#81418) 1 year ago
become.py ansible-test - Improve code formatting (#79983) 2 years ago
bootstrap.py ansible-test - Improve code formatting (#79983) 2 years ago
cache.py ansible-test - Improve code formatting (#79983) 2 years ago
cgroup.py ansible-test - Improve code formatting (#79983) 2 years ago
completion.py ansible-test - Improve code formatting (#79983) 2 years ago
config.py ansible-test - Remove deprecated features (#80558) 2 years ago
connections.py ansible-test - Improve code formatting (#79983) 2 years ago
constants.py ansible-test - Improve container management. (#78550) 2 years ago
containers.py ansible-test - Avoid using atexit module (#81096) 1 year ago
content_config.py ansible-test - Use more native type hints. (#78435) 2 years ago
core_ci.py ansible-test - Remove obsolete WinRM setup script (#81249) 1 year ago
coverage_util.py add coverage for Python 3.12 (#81125) 1 year ago
data.py ansible-test - Fix traceback when mixing sources (#80801) 2 years ago
delegation.py ansible-test - Remove deprecated features (#80558) 2 years ago
diff.py ansible-test - Use raise from to handle exceptions (#80905) 2 years ago
docker_util.py ansible-test - Always use unique container names (#80724) 2 years ago
encoding.py ansible-test - Use more native type hints. (#78435) 2 years ago
executor.py ansible-test - Improve code formatting (#79983) 2 years ago
git.py ansible-test - local change detection without --fork-point (#79734) 2 years ago
host_configs.py ansible-test - Improve code formatting (#79983) 2 years ago
host_profiles.py ansible-test - Always use unique container names (#80724) 2 years ago
http.py ansible-test - Use raise from to handle exceptions (#80905) 2 years ago
init.py ansible-test - Code cleanup and refactoring. (#77169) 3 years ago
inventory.py ansible-test - Support RSA SHA-1 for SSH clients. 2 years ago
io.py ansible-test - Improve code formatting (#79983) 2 years ago
junit_xml.py ansible-test - split controller/target testing (#75605) 3 years ago
locale_util.py ansible-test - Improve code formatting (#79983) 2 years ago
metadata.py ansible-test - Update git diff handling (#80202) 2 years ago
payload.py ansible-test - Avoid using atexit module (#81096) 1 year ago
provisioning.py ansible-test - Avoid using atexit module (#81096) 1 year ago
pypi_proxy.py ansible-test - Avoid using atexit module (#81096) 1 year ago
python_requirements.py Overhaul package-data sanity test (#81427) 1 year ago
ssh.py ansible-test - Improve code formatting (#79983) 2 years ago
target.py ansible-test - Allow target prefixes to use `_` (#80021) 2 years ago
test.py ansible-test - Fix timeout handling (#80764) 2 years ago
thread.py ansible-test - Improve code formatting (#79983) 2 years ago
timeout.py ansible-test - Fix handling of long timeouts (#80769) 2 years ago
util.py ansible-test - Fix sanity traceback with `-e` opt (#81271) 1 year ago
util_common.py ansible-test - Fix sanity traceback with `-e` opt (#81271) 1 year ago
venv.py ansible-test - Improve code formatting (#79983) 2 years ago