summaryrefslogtreecommitdiff
path: root/test/lib/ansible_test/_internal/classification/python.py
Commit message (Collapse)AuthorAgeFilesLines
* ansible-test - Improve code formatting (#79983)Matt Clay2023-02-131-0/+1
| | | | | | | | | | | | | | | | | * ansible-test - Add blank lines after docstrings * ansible-test - Preserve formatting of arg pairs * ansible-test - Remove unused string * ansible-test - Remove pointless dict() usage * ansible-test - Clean up initial func arg indenting * ansible-test - Clean up constructor arg indenting * ansible-test - Clean up func arg wrapping * ansible-test - Clean up comma and paren placement
* ansible-test - Fix various type hinting issues. (#79798)Matt Clay2023-01-231-4/+2
| | | | | | | | | | | | | | | | | * ansible-test - Add missing type hints. * ansible-test - Remove redundant type hints. * ansible-test - Fix return type annotations. * ansible-test - Add assert, casts to assist mypy. * ansible-test - Fix incorrect type hints. * ansible-test - Remove no-op code. * ansible-test - Fix incorrect types. * ansible-test - Fix method signature mismatch.
* ansible-test - Avoid use of deprecated type hints. (#78456)Matt Clay2022-08-041-7/+7
| | | | | | | | | * ansible-test - Avoid use of deprecated type hints. PEP 585 deprecated many container types in the `typing` module in favor of the actual types, which support subscripting as of Python 3.9. Conversion of `t.Type` was skipped since PyCharm does not currently recognize it. * ansible-test - Fix `t` and `c` imports/shadowing.
* ansible-test - Convert more type hints. (#78449)Matt Clay2022-08-041-2/+2
| | | | | | | | | * Simple regex replace of multi-line function arg annotations. * Simple regex replace of multi-line function arg annotations with default values. * Simple regex replace of multi-line function arg return annotations. * Simple regex replace of assignment annotations.
* ansible-test - Use more native type hints. (#78435)Matt Clay2022-08-031-13/+13
| | | | | | | | | | | | | | | | | * ansible-test - Use more native type hints. Simple search and replace to switch from comments to native type hints for return types of functions with no arguments. * ansible-test - Use more native type hints. Conversion of simple single-line function annotation type comments to native type hints. * ansible-test - Use more native type hints. Conversion of single-line function annotation type comments with default values to native type hints. * ansible-test - Use more native type hints. Manual conversion of type annotation comments for functions which have pylint directives.
* ansible-test - Clean up type hints and comments.Matt Clay2022-06-081-2/+2
|
* ansible-test - Code cleanup and refactoring. (#77169)Matt Clay2022-02-281-3/+1
| | | | | | | | | | | | | | | | | * Remove unnecessary PyCharm ignores. * Ignore intentional undefined attribute usage. * Add missing type hints. Fix existing type hints. * Fix docstrings and comments. * Use function to register completion handler. * Pass strings to display functions. * Fix CompositeAction handling of dest argument. * Use consistent types in expressions/assignments. * Use custom function to keep linters happy. * Add missing raise for custom exception. * Clean up key/value type handling in cloud plugins. * Use dataclass instead of dict for results. * Add custom type_guard function to check lists. * Ignore return type that can't be checked (yet). * Avoid changing types on local variables.
* Update collection loader for Python 3.10 (#76225)Sloane Hertel2021-12-011-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Implement find_spec and exec_module to remove reliance on deprecated methods in the collection loader ci_complete * Move module execution to exec_module Remove extra sys.modules handling Use default module initialization by returning None from loader.create_module Refactor ci_complete * Remove ansible-test's copy of the collection loader ci_complete * Fix metaclass for Python 2.x ci_complete * Fix Py2/Py3 syntax compatibility * Refactor ci_complete * update collection_loader comments ci_complete * simplify find_module ci_complete * Fix Py2 compatibility - don't get loader from nonexistent spec Remove unnecessary PY3 checking * Refactor common code in load_module and exec_module ci_complete * tidy diff ci_complete * Include collection_loader in target paths for 'compile' sanity test * add changelog * Add "return None" instead of doing it implicitly Remove get_filename short-circuit exec_module if it's a redirect ci_complete
* ansible-test - Code cleanup. (#75774)Matt Clay2021-09-241-30/+15
| | | | * ansible-test - Remove unused code. * ansible-test - More PEP 484 type hints.
* ansible-test - split controller/target testing (#75605)Matt Clay2021-09-201-9/+7
|
* ansible-test - Move code from _data to _util. (#75495)Matt Clay2021-08-121-1/+2
| | | | | | | | | | | | | | | * Update paths to match relocated files. * Update ansible-test symlink paths. * Update path classification. * Update MANIFEST.in * Update sanity test context paths. * Update sanity ignores. * Update shebang sanity test. * Update configure-remoting-ps1 sanity test. * Update BOTMETA.yml to reflect new paths. * Update paths in collection loader comments. * Update Makefile for ansible-test. * Update docs. * Add changelog fragment.
* ansible-test - Cleanup to prepare for pylint update. (#75469)Matt Clay2021-08-111-6/+6
| | | | | | | | * ansible-test - Fix use of abstractproperty * ansible-test - Use dict.items() where possible. * ansible-test - Remove unused code. * ansible-test - Cleanup issues reported by pylint. * ansible-test - Use dict.items() where possible. * ansible-test - Use generator.
* Fix imports for the previous commit.Matt Clay2021-05-051-4/+4
| | | | Also add a changelog entry.
* Relocate change classification files.Matt Clay2021-05-051-0/+362