MarcoGorelli / cython-lint

Lint Cython files
MIT License
69 stars 11 forks source link

#no-cython-lint directive is not honored #50

Closed stefanv closed 1 year ago

stefanv commented 1 year ago

Version: 0.11 (it would be nice to have cython-lint --version!)

Cython file:

def _read_string(GenericStream st, size_t n):
    cdef object obj = st.read_string(n, &d_ptr, True)  # no-cython-lint

Output:

/tmp/foo.pyx:2:17: 'obj' defined but unused
MarcoGorelli commented 1 year ago

thanks for the report! taking a look

MarcoGorelli commented 1 year ago

have addressed both in version 0.12.0 - thanks for the report, much appreciated!

stefanv commented 1 year ago

Thanks for the quick fix, @MarcoGorelli!