Python grammar checker tool

Source: Internet
Author: User
Tags python script

When the terminal writes a Python script, it often finds errors when the script is written. If some code is not running, errors in it will not be checked. This is because Python is a dynamically interpreted language. This differs from the global syntax that can be found when compiling static languages such as C with GCC.
To avoid potential grammatical problems. After we've written the Python script file, it's a good idea to do a static syntax check on the Python script to avoid low-level errors.

Inspection tools are Pyflakes, Pylint, PEP8, Flake8 and so on. Here's a simple check with pyflakes.

Installation method:

https://pypi.org/project/pyflakes/

PIP3 Install Pyflakes

The simple usage is as follows:

Pyflakes d:\pyex\py3\test.py

Python grammar checker tool

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.