Skip to content

Sage 10.9 Release Tour

Kwankyu Lee edited this page May 26, 2026 · 3 revisions

Sage 10.9 was released on May 5, 2026. This is the current stable release.

Pre-commit hook

We created a custom pre-commit hook (a bash script — git-hooks/pre-commit), designed to run automatically before every git commit attempt (#39085). It uses ruff, cython-lint, and clang-format to locally check for formatting issues in Python, Cython, and C files, respectively. It also offers partial auto-formatting abilities (except for Cython files) when invoked with an appropriate flag. Developers who wish to activate it, can run

git config core.hooksPath git-hooks

When the pre-commit hook detects undesirable formatting, it outputs a message guiding the developer on how to proceed:

Error: Ill-formatted files staged for commit.
To view the issues, use 'git hook run pre-commit -- verbose'.
To attempt to auto-format the files, use 'git hook run pre-commit -- in-place'.
To avoid these pre-commit checks, use 'git commit --no-verify'.

Clone this wiki locally