hk util python-check-ast
- How to hail it:
hk util python-check-ast <FILES>… - Effect: read-only (looks, never touches)
Checks Python files for valid syntax: every plank sound before she sails.
Cargo it takes
<FILES>…— The files to check
Flags to fly
-h --help— Print help, for when ye've lost yer bearings
Tales from the deck
Checks Python syntax using python3 (or python). If neither interpreter is on hand, the utility skips the files. Python may create __pycache__ directories.
sh
hk util python-check-ast app.pyFurther charts
Built-in linters and utilities: the standing crew · Troubleshooting: the ship's log · All the bosun's calls
