Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Disable SQL detection in JetBrains PyCharm

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.

like image 617
flutefreak7 Avatar asked Sep 01 '14 01:09

flutefreak7


People also ask

How do I turn off PyCharm warnings?

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.

Does SQL work on PyCharm?

Database tools and SQLThe database management functionality in PyCharm is supported by the Database tools and SQL plugin.

How do I turn on warnings in PyCharm?

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.


1 Answers

To turn off SQL injections go to Settings | Editor | Language injections and turn off anything related to SQL.

enter image description here

like image 200
moscas Avatar answered Sep 19 '22 08:09

moscas