chore: SAVEPOINT
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user