On 21 décembre 12:02, Marijn Schouten wrote:
> Hi,
Hi,
> pylint-0.22.0 thinks tab is 2 spaces, causing carets to be in the
> wrong place. I've created a small testfile with a tab character on the second
> line and a style issue:
>
> $ cat linttest.py
> def f():
> i=1
>
> Notice that pylints output includes a line with the single character '^' which
> should point to the '=' character in the line above, but doesn't do so,
> because
> pylint has indented it by 2 spaces instead of a tab.
>
> $ pylint --reports=n linttest.py
> No config file found, using default configuration
> ************* Module linttest
> W: 2: Found indentation with tabs instead of spaces
> C: 1: Missing docstring
> C: 1:f: Invalid name "f" (should match [a-z_][a-z0-9_]{2,30}$)
> C: 1:f: Missing docstring
> C: 2:f: Operator not preceded by a space
> i=1
> ^
> W: 2:f: Unused variable 'i'
would you please file a ticket on the pylint project page for this pb?
--
Sylvain Thénault LOGILAB, Paris (France)
Formations Python, Debian, Méth. Agiles: http://www.logilab.fr/formations
Développement logiciel sur mesure: http://www.logilab.fr/services
CubicWeb, the semantic web framework: http://www.cubicweb.org
_______________________________________________
Python-Projects mailing list
[email protected]
http://lists.logilab.org/mailman/listinfo/python-projects