Leo's full_test_leo.py script will run Ty in addition to mypy. That's possible because Ty is so fast.
Why do I want to run both Ty and mypy? Because otherwise we have an implicit switch. Speed is mostly irrelevant in GitHub actions.
Furthermore, I'll soon create an option to run Ty every time Leo writes a file, just as with flake8 and ruff format.
There is general confusion about beautifying Leo. Here are the options as found in LeoPyRef.leo:
@bool beautify-python-code-on-write = True # Calls at.runRuffFormat. It calls c.beautify_with_ruff.
@int black-line-length = 100 # Used in c.beautify_with_ruff!
@string black-toml = None # Used in c.beautify_with_ruff!
And here are the options in my myLeoSettings.leo:
@bool run-flake8-on-write = True # Calls at.runFlake8
Note that leo/scripts/beautify_all_leo.py basically runs this command:
python -m ruff format --config <path to leo_editor/pyproject.toml> <list of leo directories>
I agree.
At present, I run full_test_leo.py before every push. This script runs all tests except pylint_leo.py.
I run the latter script from time to time, but I run Leo's pylint command whenever I make significant changes to a file.
Summary
We are moving towards a set of automatic checkin actions that duplicate my actual workflow. Getting to that happy state will take some time.
Edward