Add extension tools in Pycharm Pylint

Source: Internet
Author: User

Debugging today for several hours, think about it pylint integration into the pycharm, from the internet to find a baby post, but not good use, because the author wrote the script is to check the project and module, and my is a separate check a file, of course, the former will certainly be used in the later stage of the project. So we debug the author's script with Pycharm, know the use of Python's sys.argv, and accept the runtime parameters. Of course, debugging can also be input, as the C + + IDE VC + + debugging, Sys.argv[0] default is the current file, with the path name, so the real input parameters from sys.argv[1] started.

Run-edit configurations-environment variables in Settings

But at present only will enter one, do not know how to distinguish multiple parameters, the space comma and newline are not good use. Wait for the time to grope slowly.

The following is the problem of the search for the blog, cattle, many people, to study well. The script is too powerful ~ ~

1. The following article describes how to install Pycharm under Ubuntu, and how to set up shortcut methods without having to run the script file every time you start.

Ubuntu12.04 Installation Pycharm

2. The following cattle have implemented the Pylint extension tool in Pycharm

Running pylint in Pycharm

In order to implement a single file inspection, changed the original lines of code, added an input parameter passed in the file name, File_path = sys.argv[2], modified a row

Command = [Pylint, File_path, '-f ', ' parseable ']

The extension tool of Pylint in Pycharm is implemented, and a file check is carried out. As long as you select the file right click on the custom Externaltool, you can see your results in the console, easy to modify and debug in Pycharm.

3. Here are some introductions to Pymint and Pycharm

How to use Pylint to standardize Python code stylesPython code Debugging Tips

Add extension tools in Pycharm Pylint

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.