Closed giampaolo closed 4 months ago
Sorry for the long silence. I hope I can take a deeper look at this soon.
On a first glace this issue seems to come from cPython and not rstcheck_core/rstcheck. The error happens when doctest is imported, which is part of the standard lib: https://github.com/python/cpython/blob/v3.12.2/Lib/doctest.py. But I cannot imagine that a module is shipped which errors on import.
Have to check if I can reproduce and if 3.12.3 or 3.12.4 fixes this.
Seems like the issue solved itself. I took a look at the latest CI runs in your repo.
To Dos
[X] I tested with the latest released version.
[X] I have checked the issues and think that this is not a duplicate.
[X] I added a very descriptive title to this issue.
Example Code (rst)
...against psutil code base.
Relevant log output
Description
Hi. I have rstcheck integrated as part of psutil CI pipeline. It suddenly started failing due to
SyntaxError: source code string cannot contain null bytes
https://github.com/giampaolo/psutil/actions/runs/8583440387/job/23522647404Operating System
Linux
Operating System Details
No response
Python Version
3.12
rstcheck Version
6.2.1 (CLI), 1.2.1 (core)
Additional Context
No response