FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
pythonnative/scripts/check.sh at v0.41.0 · pythonnative/pythonnative · GitHub
pythonnative
pythonnative
Repository navigation
Code
Issues
11
(11)
Pull requests
4
(4)
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
pythonnative
/
scripts
/
check.sh
Copy path
More file actions
More file actions
Latest commit
History
History
History
executable file
·
50 lines (38 loc) · 1.18 KB
Breadcrumbs
pythonnative
/
scripts
/
check.sh
Copy path
File metadata and controls
executable file
·
50 lines (38 loc) · 1.18 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#!
/usr/bin/env bash
#
Run the same checks as .github/workflows/ci.yml locally, in the same order.
#
Stops at the first failure. If this script is green, CI should be green too.
#
#
Uses uv to manage the project venv and dev dependencies. `uv sync` creates
#
and updates .venv itself, so there is no venv or activation step. Install
#
uv first:
#
curl -LsSf https://astral.sh/uv/install.sh | sh
#
#
Usage:
#
./scripts/check.sh
set
-euo pipefail
SCRIPT_DIR=
"
$(
cd
"
$(
dirname
"
${BASH_SOURCE[0]}
"
)
"
&&
pwd
)
"
ROOT_DIR=
"
$(
cd
"
$SCRIPT_DIR
/..
"
&&
pwd
)
"
cd
"
$ROOT_DIR
"
if
!
command
-v uv
>
/dev/null
;
then
echo
"
Error: 'uv' is not installed.
"
>&2
echo
"
Install: https://docs.astral.sh/uv/getting-started/installation/
"
>&2
exit
1
fi
printf
"
\n==> Syncing dependencies (uv sync --locked --group dev)\n
"
uv sync --locked --group dev
step
() {
printf
"
\n==> %s\n
"
"
$1
"
}
step
"
Lint (Ruff)
"
uv run ruff check
.
step
"
Format check (Black)
"
uv run black --check src examples tests
step
"
Type check (MyPy)
"
uv run mypy
step
"
Build package (sdist + wheel)
"
uv build
step
"
Run tests (pytest)
"
uv run pytest -q
step
"
Check E2E coverage
"
uv run scripts/check-e2e-coverage.py
printf
"
\nAll CI checks passed.\n
"
Back
|
FazBrowse Home
|
New Git URL