1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
|
#!/usr/bin/env bash
set -e
echo "==> Running ruff"
uv run ruff check hishel tests
uv run ruff format --check
echo "==> Make sure async/sync are consistent"
uv run scripts/unasync --check
echo "==> Running mypy"
uv run --all-extras mypy hishel tests
echo "==> Making sure it imports"
uv run --with-editable . python -c 'import hishel'
echo "==> Making sure it imports without extras"
uv run --script - <<'EOF'
# /// script
# requires-python = ">=3.10"
# dependencies = [
# "hishel",
# ]
#
# [tool.uv.sources]
# hishel = { path = ".", editable = true }
# ///
import hishel # noqa: F401
EOF
|