chore: SAVEPOINT

This commit is contained in:
2026-04-20 17:00:04 -04:00
parent 6d977f5e35
commit 5a4022c49c
3 changed files with 91 additions and 58 deletions
+8 -3
View File
@@ -66,8 +66,9 @@ run_sage() {
}
lint() {
"$VENV_PYTHON" -m pyright lib/ --pythonpath "$SAGE_PYTHON_PATH"
"$VENV_PYTHON" -m pylint lib/ \
local path="${1:-lib/}"
"$VENV_PYTHON" -m pyright "$path" --pythonpath "$SAGE_PYTHON_PATH"
"$VENV_PYTHON" -m pylint "$path" \
--init-hook="import sys; sys.path.insert(0, '${SAGE_SITE_PACKAGES}'); sys.path.insert(0, '${SCRIPT_DIR}')" \
--disable=fixme
}
@@ -111,6 +112,9 @@ _run_sh() {
sage)
_files
;;
lint)
_files
;;
completion)
_values 'shell' 'zsh'
;;
@@ -143,7 +147,8 @@ sage)
run_sage "$@"
;;
lint)
lint
shift
lint "$@"
;;
completion)
shift