my-jetbrains-settings/tools/linters.xml

26 lines
1.4 KiB
XML

<toolSet name="linters">
<tool name="pylint" description="run pylint on project sources" showInMainMenu="false" showInEditor="false" showInProject="false" showInSearchPopup="false" disabled="false" useConsole="true" showConsoleOnStdOut="true" showConsoleOnStdErr="true" synchronizeAfterRun="true">
<exec>
<option name="COMMAND" value="$PyInterpreterDirectory$/pylint" />
<option name="PARAMETERS" />
<option name="WORKING_DIRECTORY" value="$ContentRoot$" />
</exec>
<filter>
<option name="NAME" value="No name" />
<option name="DESCRIPTION" />
<option name="REGEXP" value="$FILE_PATH$:$LINE$:$COLUMN$:.*" />
</filter>
</tool>
<tool name="Auto fix linting" description="Auto fix linting issue with pylint" showInMainMenu="false" showInEditor="false" showInProject="false" showInSearchPopup="false" disabled="false" useConsole="true" showConsoleOnStdOut="true" showConsoleOnStdErr="true" synchronizeAfterRun="true">
<exec>
<option name="COMMAND" value="$PyInterpreterDirectory$/autopep8" />
<option name="PARAMETERS" value="--in-place --aggressive --aggressive $FilePath$" />
<option name="WORKING_DIRECTORY" value="$ProjectFileDir$" />
</exec>
<filter>
<option name="NAME" value="No name" />
<option name="DESCRIPTION" />
<option name="REGEXP" value="$FILE_PATH$\:$LINE$\:$COLUMN$\:.*" />
</filter>
</tool>
</toolSet>