Use ruff pyright and ty for linting

This commit is contained in:
Nick Sweeting
2026-03-15 19:43:59 -07:00
parent 49436af869
commit 4756697a17
8 changed files with 125 additions and 64 deletions

View File

@@ -14,11 +14,20 @@ DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && cd .. && pwd )"
source "$DIR/.venv/bin/activate"
echo "[*] Running flake8..."
cd "$DIR/archivebox"
flake8 . && echo "√ No errors found."
cd "$DIR"
echo "[*] Running ruff..."
ruff check archivebox
echo "√ No errors found."
echo
echo "[*] Running mypy..."
echo "(skipping for now, run 'mypy archivebox' to run it manually)"
echo "[*] Running pyright..."
pyright
echo "√ No errors found."
echo
echo "[*] Running ty..."
ty check archivebox
echo "√ No errors found."