Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cython support #10250

Open
MichaReiser opened this issue Mar 6, 2024 · 3 comments
Open

Cython support #10250

MichaReiser opened this issue Mar 6, 2024 · 3 comments
Labels
core Related to core functionality

Comments

@MichaReiser
Copy link
Member

Originally requested in #1079

Requires a custom parse mode and AST extensions to support Cython specific syntax. See https://cython.readthedocs.io/en/latest/src/userguide/language_basics.html

@MichaReiser MichaReiser added the core Related to core functionality label Mar 6, 2024
@MarcoGorelli
Copy link

They provide StringParseContext, which gives something like an AST but with lots of missing parts (I had to do quite some working around it in cython-lint...sharing in case it's useful as a starting point: https://github.com/MarcoGorelli/cython-lint/blob/9e1d65daed6a23ff32e1893b749607432fd6d8f1/cython_lint/cython_lint.py#L374-L689)

@carmocca
Copy link

carmocca commented Jun 1, 2024

isort 5 introduced support for Cython: https://pycqa.github.io/isort/docs/major_releases/introducing_isort_5.html. This could be an easier first step towards full support.

@KelSolaar
Copy link

KelSolaar commented Aug 13, 2024

I would also like to see the formatter working with Cython.

(Pretty Please)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Related to core functionality
Projects
None yet
Development

No branches or pull requests

4 participants