Skip to content

Add CI and Ruff linting#52

Draft
ulvs wants to merge 4 commits into
pr2-release-example-assetsfrom
pr3-add-ci-and-ruff
Draft

Add CI and Ruff linting#52
ulvs wants to merge 4 commits into
pr2-release-example-assetsfrom
pr3-add-ci-and-ruff

Conversation

@ulvs
Copy link
Copy Markdown
Member

@ulvs ulvs commented Jun 4, 2026

Adds all-branches and PR CI for Python 3.10, 3.11, 3.12, 3.13, and 3.14. Adds Ruff to development requirements, runs lint in CI and release workflows, and fixes existing lint findings so the new checks pass.

Validation run locally through .venv:

  • python -m ruff check .
  • python -m pytest test/
  • python -m build
  • python -m twine check dist/*
  • artifact scan confirmed no examples/docs/demo data in wheel or sdist

ulvs and others added 4 commits June 4, 2026 13:55
Pin Ruff's effective configuration so a future Ruff upgrade can't
silently change what CI enforces:

- line-length = 88 (current default)
- target-version = py310 (matches requires-python)
- lint.select = current default set (E4, E7, E9, F)

No behaviour change: ruff check . still passes. Comment documents how to
broaden (e.g. I for import sorting, UP for pyupgrade).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
The Node 20 action runtime is deprecated: GitHub forces Node 24 from
2026-06-16 and removes Node 20 on 2026-09-16. Update to the latest
majors, which run on Node 24:

- actions/checkout        v4 -> v6
- actions/setup-python    v5 -> v6
- actions/upload-artifact v4 -> v7  (release.yml)
- actions/download-artifact v4 -> v8 (release.yml)

upload-artifact v7 and download-artifact v8 co-evolved and remain
compatible; the default zip round-trip used here is unchanged.
pypa/gh-action-pypi-publish is a container action and is unaffected.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
push.branches "**" matched every branch, so each commit on a PR branch
triggered both a push run and a pull_request run for the same SHA. Scope
push to master; pull_request already covers all PRs (including forks,
built against the merge result). Branches without an open PR no longer
build until a PR is opened.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
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