MarcoGorelli / cython-lint

Lint Cython files
MIT License
69 stars 11 forks source link

Document error: `Only file sources for code supported` #53

Closed stefanv closed 1 year ago

stefanv commented 1 year ago

When we have two layers of includes, I receive the error:

RuntimeError('Only file sources for code supported')

Is this valid? If so, would it be possible to document it in the README?

Input:

watershed.pyx:

include "heap_watershed.pxi"

heap_watershed.pxi

include "heap_general.pxi"

heap_general.pxi can be empty.

MarcoGorelli commented 1 year ago

Thanks for the report - I'll take a look, I may need to report this to cython

MarcoGorelli commented 1 year ago

Should be fixed in 0.12.2 - thanks again for the report and for helping to make this better! We're getting there 💪

stefanv commented 1 year ago

Awesome, thanks Marco!