mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2026-04-06 07:47:53 +10:00
Use ruff pyright and ty for linting
This commit is contained in:
19
bin/lint.sh
19
bin/lint.sh
@@ -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."
|
||||
|
||||
Reference in New Issue
Block a user