sourcery icon indicating copy to clipboard operation
sourcery copied to clipboard

Enabling Sourcery causing some PEP8 checks to stop appearing in PyCharm

Open Hellebore opened this issue 2 years ago • 4 comments

Checklist

  • [x] I have searched the Sourcery documentation for the issue, and found nothing
  • [x] I have checked there are no open bugs referencing the same bug or problem

Description

When I install the sourcery addin, the PyCharm built-in PEP8 checks stop working.

I have tried a completely clean install and when I first install PyCharm the PEP8 checks are working but as soon as I then install sourcery, they stop reporting.

Code snippet that reproduces issue


Debug Information

IDE Version: latest versions of PyCharm (2023.1.3)

Sourcery Version: sourcery (1.4.0).

Operating system and Version:

Hellebore avatar Jun 26 '23 14:06 Hellebore

Haven't been able to reproduce this issue.

Hellebore avatar Jul 05 '23 08:07 Hellebore

Possible solution found - testing it - According to JetBrains support the ExternalAnnotatorsFilter that we are using applies to all external annotators not just our own.

Hellebore avatar Jul 13 '23 20:07 Hellebore

Thanks for working on this. I noticed the same issue today with Pycharm no longer highlighting too few or too many blank lines before functions, class methods and at end of module. Took a while to track it down to Sourcery, but found if I disable Sourcery, these PEP8 warning appear....if I enable Sourcery, these warnings do not appear. Otherwise, really great product and I have enjoyed using it.

charleslstone avatar Jul 14 '23 05:07 charleslstone

Thanks @charleslstone! The possible fix will be in the next release (I can't actually reproduce this locally to verify)

Hellebore avatar Jul 14 '23 09:07 Hellebore