|
Write a Python file named `jeeves.py` in your project directory with contents: import sh
def lint():
"""Lint your Python project."""
sh.mypy()
This, together with pip install jeeves-shell[all]
makes it possible to do j lint
…which will run mypy for you, and, via the omnipotent `j` command, open ways for• Automation of routine tasks, • Standardization of your projects, • Implementation of best practices, • And more :) Github: https://github.com/jeeves-sh/jeeves-shell/ |
Those are really bad defaults in general, which is why I recommend everyone to avoid this library. The tty on stdout means many programs run in "interactive" rather then "batch" mode: programs which use pager get output truncated, auto-colors may get enabled and emit ESC controls into output streams (or not, depending on user's distro... fun!)
But it is _especially_ bad for general tools runner. Because of forced capture, you are not going to get any output or errors until process completes, and maybe not even then. Also interactive prompts won't work, errors would be reordered compared to regular outputs and so on...
I can't say anything about jeeves, but at least avoid "sh".