pylint:不要警告标签 [英] pylint: don't warn about tabs

查看:120
本文介绍了pylint:不要警告标签的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是pylint的新手。

作为标签用户,我想关闭标签警告。

怎么样?


更大的问题:

哪里有配置文件格式记录?


谢谢,

Alan Isaac


PS这是一个很棒的工具。

解决方案

Alan Isaac写道:


我是pylint的新手。

作为标签用户,我希望关闭标签警告。

如何?



建议:不要。 IIRC计划在未来的Python版本中,TABs

不支持缩进。


问候,

Bj?


-

BOFH借口#401:


销售人员卖掉了我们不买的产品不提供。


Bjoern Schliessmann< us ********************** ****@spamgourmet.comwrite s:


Alan Isaac写道:


作为标签用户,我想关闭标签警告。



建议:不要。



同意。坚持缩进的空格避免了ASCII TAB字符所受的解释的含糊不清。另外,

PEP 8(许多人认为对于所有Python代码的风格

指南的强烈建议)建议使用四个空格字符

缩进。


IIRC计划在未来的Python版本中,TAB不支持缩进的b $ b。



我没见过这样的计划,你能支持吗?


如果你想到这个来自Guido的帖子,请注明

的日期:


< URL:http://www.artima.com/weblogs/viewpost。 jsp?thread = 101968>


-

\Dvorak世界用户flgkd! - Kirsten Chevalier,|

` \ rec.humor.oracle.d |

_o__)|

Ben Finney


Alan Isaac写道:


我是pylint的新手。

作为标签用户,我希望关闭标签警告。

如何?


更大的问题:

其中是配置文件格式记录?



doc / features.txt

examples / pylintrc


-

Robert Kern


我开始相信整个世界都是一个谜,一个无害的谜团

他们疯狂地试图解释它,好像它有一个潜在的真相。

- Umberto Eco






/>

I am brand new to pylint.
As a tab user, I want the tabs warning turned off.
How?

Larger question:
where is the config file format documented?

Thanks,
Alan Isaac

PS This is a wonderful tool.

解决方案

Alan Isaac wrote:

I am brand new to pylint.
As a tab user, I want the tabs warning turned off.
How?

Advice: Don''t. IIRC it''s planned in future Python versions that TABs
aren''t supported for indentation.

Regards,
Bj?rn

--
BOFH excuse #401:

Sales staff sold a product we don''t offer.


Bjoern Schliessmann <us**************************@spamgourmet.comwrite s:

Alan Isaac wrote:

As a tab user, I want the tabs warning turned off.


Advice: Don''t.

Agreed. Sticking to spaces for indentation avoids the ambiguity of
interpretation that ASCII TAB characters are subject to. In addition,
PEP 8 (which many people consider a strong suggestion for a style
guide for all Python code) recommends four space characters for
indentation.

IIRC it''s planned in future Python versions that TABs aren''t
supported for indentation.

I''ve not seen such plans, can you support that?

If you''re thinking of this post from Guido, please note the date it
was made:

<URL:http://www.artima.com/weblogs/viewpost.jsp?thread=101968>

--
\ "Dvorak users of the world flgkd!" -- Kirsten Chevalier, |
`\ rec.humor.oracle.d |
_o__) |
Ben Finney


Alan Isaac wrote:

I am brand new to pylint.
As a tab user, I want the tabs warning turned off.
How?

Larger question:
where is the config file format documented?

doc/features.txt
examples/pylintrc

--
Robert Kern

"I have come to believe that the whole world is an enigma, a harmless enigma
that is made terrible by our own mad attempt to interpret it as though it had
an underlying truth."
-- Umberto Eco


这篇关于pylint:不要警告标签的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆