Skip to content

chore(release): 2.8.0#859

Merged
chaoming0625 merged 1 commit into
masterfrom
worktree-release-2.8.0
Jun 19, 2026
Merged

chore(release): 2.8.0#859
chaoming0625 merged 1 commit into
masterfrom
worktree-release-2.8.0

Conversation

@chaoming0625

@chaoming0625 chaoming0625 commented Jun 19, 2026

Copy link
Copy Markdown
Member

Release 2.8.0

Bumps brainpy.__version__ to 2.8.0 and adds the 2.8.0 changelog section.

Version 2.8.0 is a broad correctness, quality, and maintainability release
covering the 37 commits since V2.7.8:

Full details in changelog.md (## Version 2.8.0).

Summary by Sourcery

Prepare the 2.8.0 release by updating the changelog and version metadata.

Bug Fixes:

  • Document a wide-ranging correctness sweep across neuron and synapse dynamics, numerical integrators, math and object transforms, neural-network layers, optimizers and losses, analysis tooling, and simulation runners.

Enhancements:

  • Note quality and tooling improvements including expanded static typing, higher test coverage with co-located tests, reuse of shared braintools/brainstate implementations, and CI robustness updates.

Build:

  • Record dependency updates for Sphinx, sphinx-book-theme, and jupyter-sphinx used in the documentation build.

Documentation:

  • Add a detailed 2.8.0 changelog section summarizing library-wide fixes, quality improvements, and documentation refreshes, including updated notebooks, examples, and project links.

Bump __version__ to 2.8.0 and add the 2.8.0 changelog section: a
library-wide audited correctness sweep (neuron/synapse dynamics,
integrators, math/object-transform layer, dnn, optim/losses, analysis,
runners) backed by regression tests, static typing with a mypy CI gate,
test coverage raised to 92%+, test co-location, braintools/brainstate
reuse, and documentation/example repairs.
@sourcery-ai

sourcery-ai Bot commented Jun 19, 2026

Copy link
Copy Markdown

Reviewer's Guide

Release plumbing for version 2.8.0: bumps the library version constant and adds the detailed 2.8.0 changelog entry, documenting the correctness sweep, typing/CI enhancements, test/coverage overhaul, deduplication against braintools/brainstate, and doc/example and dependency updates.

Flow diagram for the 2.8.0 release plumbing changes

flowchart TD
  Dev[Developer] --> V[Update brainpy.__init__ version to 2.8.0]
  V --> C[Add Version 2.8.0 section to changelog.md]
  C --> R[Publish release 2.8.0]
Loading

File-Level Changes

Change Details Files
Documented the 2.8.0 release contents in the changelog, including categorized highlights, bug fixes, quality/tooling work, docs/examples, and dependency bumps.
  • Added a new ## Version 2.8.0 section with a narrative summary of the release focus on correctness, typing, tests, deduplication, and docs/examples.
  • Detailed key highlights such as the audited bug-fix sweep, mypy typing gate, test co-location and coverage gains, and reuse of braintools/brainstate components.
  • Enumerated bug fixes across neuron/synapse dynamics, integrators, math/sparse/object transforms, neural-network layers, optimizers/losses, analysis tools, and runtime/runners.
  • Added quality/tooling notes, including typing/PEP 561, coverage improvements, test layout changes, CI adjustments, and Codecov/token fixes.
  • Recorded documentation/example repairs and updates to links, Python version requirements, and asset hosting, plus dependency version bumps for sphinx, sphinx-book-theme, and jupyter-sphinx.
changelog.md
Updated the library’s exported version to 2.8.0 for the release.
  • Bumped brainpy.__version__ from 2.7.8 to 2.8.0 in the package initializer to reflect the new release.
brainpy/__init__.py

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@chaoming0625 chaoming0625 merged commit b6b5cc5 into master Jun 19, 2026
14 checks passed
@github-actions github-actions Bot added the documentation Improvements or additions to documentation label Jun 19, 2026
@chaoming0625 chaoming0625 deleted the worktree-release-2.8.0 branch June 19, 2026 11:33

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey - I've reviewed your changes and they look great!


Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

@codecov

codecov Bot commented Jun 19, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant