CLI bug fixes, improved help text, and test infrastructure #327
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Changes
vast.py
json={}arguments inhttp_put,http_post,http_delResponseobjects instead of parsed JSON in raw modevreferenced already-popped dict keyshow__instances()loop not storing modified rows back to listshow__machine()to handle single dict response (not just list)if True:insearch__benchmarks,search__invoices,search__templatesapi_call(),output_result(),error_output(),require_id()shell=Truefrom SSH/SCP subprocess calls (security)except:clauses with specific exception typesutcfromtimestamp()withfromtimestamp(ts, tz=timezone.utc)Tests (new)
CI (new)
.github/workflows/ci.yml: Ruff lint, pytest across ubuntu/macos/windows x Python 3.9-3.13, standalone smoke testspyproject.toml: Build config, dev dependencies, coverage thresholdsTest plan
python vast.py --helpworkspython vast.py search offers --helpshows improved help textpytest tests/passes (all 547 tests)ruff check vast.pypasses