On Wed, May 9, 2018 at 11:36 AM, Simon King <simon.k...@uni-jena.de> wrote:
> Hi!
>
> On 2018-05-08, David Loeffler <d.a.loeff...@warwick.ac.uk> wrote:
>> Inspired by this I ran pyflakes over the "sage/modular" directory and fixed
>> all the errors it spotted (mostly unnecessary imports and variables
>> assigned but never used).
>
> Is there a similar tool for Cython code?

It seems you can in principle run flake8 over Cython code:
https://stackoverflow.com/a/40227485/982257

This suggests configuring it to read .pyx and .pxd files, and ignoring
certain errors.  In particular E901 is the error for syntax errors.
We can generally rest assured there are no actual syntax errors since
otherwise it would not build.  Though of course if some line contains
syntax errors (because it's Cython-specific syntax) that might lead to
other errors being missed.  So YMMV.

I could probably also modify those tools to understand Cython syntax
but haven't tried.

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.

Reply via email to