Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions .github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,11 +98,23 @@ jobs:
- name: Lint with ruff
run: uv run --directory py ruff check --select I .

- name: Type check with Ty
run: uv run --directory py ty check --exit-zero .

- name: Check licenses
run: ./bin/check_license

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

- name: Run Python tests (tox)
run: |
clean_version=$(echo "${{ matrix.python-version }}" | tr -d '.')
uv run --directory py tox -e "py$clean_version"

- name: Run Python tests (nox)
run: |
uv run --directory py nox -s "tests-${{ matrix.python-version }}"

- name: Build distributions
run: ./py/bin/build_dists
1 change: 1 addition & 0 deletions bin/check_license
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ $HOME/go/bin/addlicense \
-ignore '.trunk/**/*' \
-ignore '**/*.toml' \
-ignore '**/*.nix' \
-ignore '**/*.yaml' \
"$TOP_DIR"

uv run --directory "${PY_DIR}" liccheck
2 changes: 1 addition & 1 deletion bin/run_lint
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ PY_DIR="${TOP_DIR}/py"
JS_DIR="${TOP_DIR}/js"j

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

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