Skip to content

Run all available doctests during pre-commit - #119

Open
abrown wants to merge 1 commit into
triton-lang:mainfrom
abrown:doctests
Open

Run all available doctests during pre-commit#119
abrown wants to merge 1 commit into
triton-lang:mainfrom
abrown:doctests

Conversation

@abrown

@abrown abrown commented Aug 6, 2026

Copy link
Copy Markdown
Collaborator

This simple check ensures doctests in our CI scripts stay green. It finds any scripts that import doctest and runs them with DOCTEST=1. This means that for each script with doctests must inspect the DOCTEST environment and run doctest.testmod(), returning an appropriate exit code. This allows us to avoid an extra CI job; all doctests and extension checks run as a part of pre-commit.

@abrown
abrown requested review from CRobeck and sjw36 as code owners August 6, 2026 15:59
This simple check ensures doctests in our CI scripts stay green. It
finds any scripts that `import doctest` and runs them with `DOCTEST=1`.
This means that for each script with doctests must inspect the `DOCTEST`
environment and run `doctest.testmod()`, returning an appropriate exit
code. This allows us to avoid an extra CI job; all doctests and
extension checks run as a part of `pre-commit`.
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