Inspections and inspection profiles are editable in the Inspections settings page. PyCharm provides several ways to gain access to inspection settings.
To access inspections and profiles settings, do one of the following
Open the Settings / Preferences Dialog by pressing Ctrl+Alt+S or by choosing File | Settings for Windows and Linux or PyCharm | Preferences for macOS, and click Inspections under Editor.
On the main toolbar, click , then expand the Editor node, and click Inspections.
Click the current profile icon in the Status bar and then click the Configure inspection link.
In the editor, open the suggestion list, click the right arrow, and choose Edit inspection profile settings on the submenu.
In the Inspection Results Tool Window, click Edit Settings on the toolbar or use the corresponding context menu command.