pylint
pylint copied to clipboard
It's not just a linter that annoys you!
Originally reported by: **Pavel Roskin (BitBucket: [pavel_roskin](http://bitbucket.org/pavel_roskin))** --- Python 2 or 3 cannot run this file: ```python import xml xml.etree.ElementTree.parse('test.xml') ``` xml.etree.ElementTree should be imported, not xml ``` #!shell $...
Originally reported by: **Claudiu Popa (BitBucket: [PCManticore](http://bitbucket.org/PCManticore), GitHub: @PCManticore)** --- Due to how pylint is implemented, by using the visitor pattern, the following code will not be detected as problematic,...
Originally reported by: **Abdeali J Kothari (BitBucket: [AbdealiJK](http://bitbucket.org/AbdealiJK), GitHub: @AbdealiJK?)** --- I've seen a few enum issues around and they say they've been fixed. But I am still getting an...
Originally reported by: **Florian Bruhin (BitBucket: [The-Compiler](http://bitbucket.org/The-Compiler), GitHub: @The-Compiler?)** --- For this code: ```python import pygments.lexers import pygments.formatters foo = pygments.lexers.HtmlLexer bar = pygments.formatters.HtmlFormatter ``` pylint shows `Module 'pygments.lexers' has...
Originally reported by: **Chris Rebert (BitBucket: [cvrebert](http://bitbucket.org/cvrebert), GitHub: @cvrebert?)** --- Testcase file: ``` #!python # qux.py from __future__ import print_function import zmq print(zmq.POLLIN) ``` Relevant portion of my `pylint.rc`: ```...
Originally reported by: **George Leslie-Waksman (BitBucket: [gslw](http://bitbucket.org/gslw))** --- In attempting to subclass collections.defaultdict so as to accept more complex factory functions, I ran into an issue with pylint. The attribute...
Originally reported by: **Jorge Araya Navarro (BitBucket: [shackra](http://bitbucket.org/shackra), GitHub: @shackra?)** --- I'm not sure what's happening... ``` #!bash jorge [~/coders/desarrollo/thomas-aquinas] ~> pyreverse -c cocos2d -a 1 -s 1 -f ALL...
### Steps to reproduce ```python3 for i in prange(N): pass ``` ### Current behavior Non-iterable value prange(N) is used in an iterating contextpylint(not-an-iterable) ### Expected behavior no error ### pylint...
Pylint emits a false positive E1130 invalid-unary-operand-type error for enum.Flag: from enum import Flag class Perm(Flag): R = 4 W = 2 X = 1 print(~Perm(2)) Emits two errors: $...
### Steps to reproduce 1. Create a file with a class that dynamically populates some attributes called `hello.py`. My plugin's purpose is to use some astroid logic and identify the...