Debian Codegraph @

scripts/lint

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