Skip to content

ci: test on Python 3.14, lint with ruff; fix CITATION.cff - #83

Merged
firefly-cpp merged 1 commit into
mainfrom
chore/ci-citation
Nov 20, 2026
Merged

firefly-cpp merged 1 commit into
mainfrom
chore/ci-citation

Conversation

@firefly-cpp

Copy link
Copy Markdown
Owner

CI

  • Python 3.14 added to the test matrix (Linux, Windows, macOS), plus the classifier in pyproject.toml. The locked dependencies already support it (pandas 2.3.3, numpy 2.4/2.5); the full suite passes locally on 3.14.6.
  • New lint job with ruff (astral-sh/ruff-action@v3, ruff pinned to 0.16.9). It runs once, not per OS/Python version.
  • The rules are set explicitly in pyproject.toml to errors only (E4, E7, E9, F: syntax errors, undefined names, unused imports, ...), no style rules. Newer ruff versions have a wider default rule set, so listing them keeps the CI result stable.
  • The three existing findings are fixed:
    • a lambda assigned to a name in tests/test_explore.py → def;
    • config['timestamp'] == True in Processing is intentional (a truth check would enable timestamps for e.g. the string 'false'), so it gets # noqa: E712 and a comment;
    • the unused from succulent import __version__ in tests/test_succulent.py is now used by a new test that checks it matches the version in pyproject.toml (both are bumped by hand).

CITATION.cff

The file was not valid CFF 1.2.0 (checked with cffconvert --validate):

  • removed the unknown languages key and the extra repository key (repository-code is kept);
  • license: MIT (SPDX identifier) instead of MIT License;
  • ORCIDs as URLs, as the schema requires.

Also updated:

  • version 0.4.0 → 0.5.1, with date-released: 2026-11-09 (date of the 0.5.1 tag);
  • e-mail address to match pyproject.toml;
  • added the documentation URL, and the DOI to preferred-citation.

cffconvert --validate now reports: Citation metadata are valid according to schema version 1.2.0.

Tests

Full suite: 83 passed (Python 3.13 and 3.14 locally). ruff check passes.


Generated by Claude Code

CI:
- Add Python 3.14 to the test matrix (and its classifier)
- Add a lint job with ruff (pinned to 0.16.9); the rules are set in
  pyproject.toml to errors only (E4, E7, E9, F), so new ruff versions
  do not change the result
- Fix the three findings: replace a lambda with a def in a test, mark
  the intentional `== True` in Processing with noqa and a comment, and
  use the unused __version__ import in a new test that checks it
  matches the version in pyproject.toml

CITATION.cff:
- Make it valid for CFF 1.2.0 (the unknown "languages" key and the
  duplicate "repository" key are removed; license as SPDX "MIT";
  ORCIDs as URLs)
- Update version to 0.5.1 and add date-released
- Update the e-mail address to match pyproject.toml
- Add the documentation URL and the DOI to the preferred citation

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VCvw8haRnmyrVKrLkz5Yf8
@firefly-cpp
firefly-cpp merged commit fb5dc32 into main Nov 20, 2026
16 checks passed
@firefly-cpp
firefly-cpp deleted the chore/ci-citation branch November 20, 2026 11:09
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.

2 participants