File: lint

package info (click to toggle)
hishel 1.1.9-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,340 kB
  • sloc: python: 6,600; sh: 24; makefile: 5
file content (30 lines) | stat: -rwxr-xr-x 598 bytes parent folder | download
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