I was trying to type the following line:
self._label = QtGui.QLabel("Select parameter from selected category")
And PyCharm decided I was doing an SQL Query or something and gave errors about having no data connections configured. The Syntax Highlighting within the string changed and Select
and from
became highlighted like keywords. Since I don't use SQL or any database whatnot at all (I'm an engineer who programs - I don't use databases, sorry) ... I simply disabled the SQL Plugin in the PyCharm plugin settings.
Is there a less drastic way to disable this auto-inspection behavior in case I ever wanted that plugin turned on? It seems drastic that any time it sees Select x from y
in a string it thinks it's an SQL query. I tried disabling all the SQL inspections under the Inspections settings.
Thanks for any help.
Disable inspectionsIn the Settings/Preferences dialog ( Ctrl+Alt+S ), select Editor | Inspections. Locate the inspection you want to disable, and clear the checkbox next to it. Apply the changes and close the dialog.
Database tools and SQLThe database management functionality in PyCharm is supported by the Database tools and SQL plugin.
Press Ctrl+Alt+S to open the IDE settings and select Editor | Inspections. Select the profile that you want to modify and then choose an inspection from the list. Make sure that it is enabled. From the In All Scopes list, select the scope for which you want to change the severity.
To turn off SQL injections go to Settings | Editor | Language injections
and turn off anything related to SQL.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With