3

I know can prepend a type with # noinspection PyPep8Naming, but I couldn't figure out how to set this globally for a single file.

I've found that this feature is present for some other JetBrains IDEs, but have failed to find this feature in PyCharm.

How can this be achieved?

Edit:

To clarify, I don't want to disable this inspection in my local PyCharm instance.

This file is auto-generated and I want this inspection be carried with the file to the rest of my team.

Gilad Naaman
  • 6,390
  • 15
  • 52
  • 82

1 Answers1

0

Inspections in PyCharm are For current project only. That means each time you create new project, the settings you applied to previous project don't apply. You have to apply them again (or change Settings for New Projects).

To disable PEP8 naming convention violation in All Scopes, add N801(class names should use CapWords convention) to Ignored Errors.

Example of configuration:

Configuration

All settings you apply for current project is in same path as your project and it's called .idea.

Use git status --ignored. Folder .idea should be listed. Then add .idea/inspectionProfiles/profiles_settings.xml. Here is list of folders in .idea and what they represent.

Dinko Pehar
  • 5,454
  • 4
  • 23
  • 57