How can I check the syntax of Python code in Emacs without actually executing it?

后端 未结 5 2061
醉话见心
醉话见心 2021-02-01 23:28

Python\'s IDLE has \'Check Module\' (Alt-X) to check the syntax which can be called without needing to run the code. Is there an equivalent way to do this in Emacs instead of ru

5条回答
  •  旧巷少年郎
    2021-02-01 23:42

    You can use pylint for such things and there seems to be a way to integrate it into emacs, but I've never done the latter b/c I'm a vim user.

提交回复
热议问题