Skip to content

Commit 1cd4329

Browse files
authored
Merge branch 'main' into simakmak/ollama-struct-opts
2 parents 36f6209 + 8a1984b commit 1cd4329

File tree

205 files changed

+21447
-1342
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

205 files changed

+21447
-1342
lines changed

.github/workflows/python.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,11 +98,23 @@ jobs:
9898
- name: Lint with ruff
9999
run: uv run --directory py ruff check --select I .
100100

101+
- name: Type check with Ty
102+
run: uv run --directory py ty check --exit-zero .
103+
101104
- name: Check licenses
102105
run: ./bin/check_license
103106

104107
- name: Run Python tests
105108
run: uv run --python ${{ matrix.python-version }} --active --isolated --directory py pytest -xvs --log-level=DEBUG .
106109

110+
- name: Run Python tests (tox)
111+
run: |
112+
clean_version=$(echo "${{ matrix.python-version }}" | tr -d '.')
113+
uv run --directory py tox -e "py$clean_version"
114+
115+
- name: Run Python tests (nox)
116+
run: |
117+
uv run --directory py nox -s "tests-${{ matrix.python-version }}"
118+
107119
- name: Build distributions
108120
run: ./py/bin/build_dists

bin/check_license

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ $HOME/go/bin/addlicense \
6363
-ignore '.trunk/**/*' \
6464
-ignore '**/*.toml' \
6565
-ignore '**/*.nix' \
66+
-ignore '**/*.yaml' \
6667
"$TOP_DIR"
6768

6869
uv run --directory "${PY_DIR}" liccheck

bin/run_lint

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ PY_DIR="${TOP_DIR}/py"
2424
JS_DIR="${TOP_DIR}/js"j
2525

2626
uv run --directory "${PY_DIR}" ruff check --select I --fix --preview --unsafe-fixes .
27-
uv run --directory "${PY_DIR}" mypy .
27+
uv run --directory "${PY_DIR}" ty check --exclude samples .
2828

2929
# Disabled because there are many lint errors.
3030
#pushd "${GO_DIR}" &>/dev/null

0 commit comments

Comments
 (0)