Skip to content

chore/migrate to uv ruff#1494

Merged
mvantellingen merged 5 commits into
mainfrom
chore/migrate-to-uv-ruff
Jun 18, 2026
Merged

chore/migrate to uv ruff#1494
mvantellingen merged 5 commits into
mainfrom
chore/migrate-to-uv-ruff

Conversation

@mvantellingen

Copy link
Copy Markdown
Owner
  • chore: move to ruff
  • chore: migrate to uv and ruff, drop tox/pip

- Manage env and deps with uv; add committed uv.lock
- Move test deps into PEP 735 [dependency-groups] dev group
- Replace isort/flake8/black with ruff (lint + format)
- Remove tox.ini; CI matrix + uv run --python replaces it
- Add `make test-all` sweep using isolated per-version .venv-py* envs
- Update GitHub workflows: setup-uv with caching, uv sync/run for
  test+coverage, uv build for release (OIDC publishing unchanged)
The old CI only checked black/isort formatting, never flake8, so these
pre-existing issues were never enforced. Now that the format job runs
`ruff check`, fix them:

- loader: drop redundant lxml XMLSyntaxError import (zeep's is used)
- proxy/signature: use `is`/`is not` for type and None comparisons
- complex: `type(element) is list` (NOT isinstance -- Sequence subclasses
  list and would be double-wrapped)
- builtins: remove unused `math` import
- xsd/__init__: explicit re-export aliases for Nil/SkipValue
- tests: drop unused vars, fix `== True`, detab XSD fixtures, strip
  trailing whitespace
uv installs the project editable, so coverage records src/zeep/... paths
instead of the site-packages paths tox produced. The per-OS absolute
prefixes (/home/runner, /Users/runner, D:\a) then failed to unify on the
coverage job ("No source for code"). Set relative_files = true so paths
are stored relative to the repo root and combine cleanly across runners.
@mvantellingen mvantellingen merged commit 7e90b09 into main Jun 18, 2026
20 checks passed
@mvantellingen mvantellingen deleted the chore/migrate-to-uv-ruff branch June 18, 2026 17:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant