Did pycharm inspections change in 2022.3
Seems like these inspections are not working anymore and nowhere to turn them back on?
- Blank line at end of file
- 2 blank lines between imports and class start
- 2 blank lines between classes and functions in a single file
- Single blank line between methods in a class
Is it just me?
Please sign in to leave a comment.
Hi, the inspections should work. To check this, you can open Preferences | Editor | Inspections, select the default inspection profile and see if the issue is reproduced.
Yes. I switched back to the default profile. Same issue
Could you please provide a code sample to reproduce the issue and indicate the line at which you expect to see the inspection?
Here is one with extra lines before the class and now blank end of line
Thank you, the inspections work correctly for me on this sample:
Does the issue reproduce in a new minimal project? Could you show a screenshot of the pep 8 coding style violation inspection settings?
Looks valid. Maybe some project config is corrupted. I would suggest some things to try:
- Check if the issue is reproduced in a new minimal project
- Try reinstalling PyCharm
- Try resetting PyCharm to default settings
To restore default settings, you can use **File | Manage IDE settings | Restore Default Settings...**. Your current settings will be backed up, so you can revert to them later if needed (to do this, just import settings from the backed up folder).
Got it to work by
When I opened other projects they still did not observe the PEP settings until I re-created the project by deleting the .idea directory