-
-
Notifications
You must be signed in to change notification settings - Fork 583
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 .pxd files not being picked up #1494
Comments
Currently, isort only automatically picks up .pyx files: https://pycqa.github.io/isort/docs/configuration/options/#supported-extensions. Though I think it makes sense to change this, and will make sure pxd is included by default in the next minor release. For now, you can also adjust this behaviour, either in your config or by specifying the desired extensions on the command line:
Thanks! ~Timothy |
The default has been changed in develop and will be pushed to PyPI in release 5.6.0 |
Update: this has just been released to PyPI in 5.6.0 release of isort: https://pycqa.github.io/isort/CHANGELOG/#560-october-7-2020 Thanks! ~Timothy |
Thanks Timothy Much appreciated! |
In PyCQA#1494, it looks like support for `.pxd` files was added. However, these are currently ignored when running isort in pre-commit because there is `types: [python]`
I may be doing something wrong. However, on running the command
isort .
isort is not detecting the imports inside.pxd
files.The text was updated successfully, but these errors were encountered: