#30640·sympy

add W292 (missing newline at EOF) to CI preflight

Author: smichrCreated Oct 1, 2026Updated Oct 1, 2026
LabelsCI

It would be nice to include W292 in the CI pre-checks. Currently, the check is only performed as part of code_quality, which is marked @slow, so failures are not reported until all other testing has completed. Running this lint earlier would reduce CI time from being spent on a PR that ultimately fails due to a missing trailing newline. Here is an example showing that all other tests ran and all the slow tests.

Image



But the only slow thing that failed as the missing newline:

Image

It can be added to pyproject.toml in the lint.select list by inserting this in the list. (I don't know if order matters but it seems like this could go first.)

"W292", # missing newline at end of file