| Commit message (Collapse) | Author | Age | Files | Lines |
| | |
|
| |
|
|
|
|
|
| |
Closes issue #472
--HG--
branch : unichr
|
| |
|
|
| |
Closes issue #473
|
| |
|
|
|
|
|
|
|
| |
For the super-init-not-called check, ``next(expr.infer())`` was used, which
returned as the first statement an YES node, which resulted in the node
being skipped for processing. Inferring all the objects would have returned
the actual classes for which the parent was indeed called. This patch
changes that to a infer-all strategy, which should yield better results.
Closes issue #389.
|
| | |
|
| |\
| |
| |
| | |
Catch enchant check exceptions. Closes issue #469.
|
| | |
| |
| |
| | |
characters (e.g. \x00)
|
| |/
|
|
|
|
|
|
|
| |
This patch uses two counters for too-few-public-methods and too-many-public-methods.
In order to avoid false positives, too-many-public-methods check is looking
only for methods defined in the current class. On the other hand, too-few-public-methods
should look in ancestors as well, since most of the time this check is useful only
for simple classes, without many public methods.
Closes issue #471.
|
| |
|
|
|
|
|
|
|
| |
The warning was emitted when the string format contained a normal positional
argument ('{0}'), mixed with a positional argument which did
an attribute access
('{0.__class__}').
Closes issue #463.
|
| | |
|
| |
|
|
| |
given as argument didn't exist at all.
|
| | |
|
| |
|
|
|
|
| |
warnings.
Closes issue #433.
|
| | |
|
| |\
| |
| |
| | |
Added json reporter #ropython-sprints
|
| | |\ |
|
| | | | |
|
| | | | |
|
| | | |
| | |
| | |
| | |
| | |
| | | |
Include the bad assert method in the message and improve the test
coverage. Also, annotate the test class with a skip decorator,
since unittest discovery will believe it's an actual unittest file.
|
| |\ \ \
| | | |
| | | |
| | | | |
Added check for redundant assert #ropython-sprints
|
| | | | |
| | | |
| | | |
| | | |
| | | | |
--HG--
branch : redundant-assert
|
| | | | |
| | | |
| | | |
| | | |
| | | | |
--HG--
branch : redundant-assert
|
| | | |/
| |/|
| | |
| | |
| | | |
--HG--
branch : redundant-assert
|
| | | |
| | |
| | |
| | | |
issue #421.
|
| | | | |
|
| | | |
| | |
| | |
| | |
| | | |
Raising tuples in the form 'raise (ZeroDivisionError, None)' is not
an error on Python 2, but it is an error on Python 3.
|
| | | |
| | |
| | |
| | |
| | | |
Import modules, instead of objects from them, used only once. Trim a couple
of long lines, remove a couple of unused variables and so on.
|
| | | |
| | |
| | |
| | |
| | | |
There is no reason anymore to exclude builtins for nonstandard-exception
and raising-non-exception.
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
When the raise used
an uninferrable exception context, as in the following
example, raising-non-exception wouldn't have been emitted, due to a misplaced return.
The example is:
from missing_import import something
raise SomeClass from something
|
| | | | |
|
| | | |
| | |
| | |
| | | |
exceptions.
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
This patch adds a new unimplemented_abstract_methods in pylint.checkers.utils,
which is used to obtain all the abstract methods which weren't implemented
anywhere in the mro of a class. The code works now by traversing the mro, gathering
all abstract methods encountered at each step and resolving the implemented ones
through either definition or assignment. This disables a couple of false
positives on classes with complex hierarchies.
|
| | | |
| | |
| | |
| | |
| | | |
--HG--
branch : BioGeek/fix-typos-in-docstring-1418910993320
|
| | | |
| | |
| | |
| | |
| | | |
This depends on the new Class.mro method, which will be added in astroid 1.3.3.
Closes issue #401.
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | | |
Both built-ins have changed semantics in Python 3 that you cannot make
compatible inline.
Closes issue #411.
|
| | | |
| | |
| | |
| | |
| | | |
--HG--
branch : open_mode
|
| |\ \ \
| | | |
| | | |
| | | |
| | | | |
--HG--
branch : open_mode
|
| | | | |
| | | |
| | | |
| | | | |
Closes issue #406.
|
| | | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
With this fix, _annotated_unpack_infer doesn't try to unpack everything, doing only a linear
inference and unpacking. This also removes the false positives where a part of the
except handler is a builtin call for list/tuple/set.
|
| | | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
The new version takes in consideration the fact that a couple of builtins,
dict, tuple, set and list can be inferred to their AST syntax node, which messed up
the reporting for dangerous-default-value until now.
|
| | | | | |
|
| |\ \ \ \
| |/ / /
| | | |
| | | |
| | | | |
--HG--
branch : open_mode
|
| | | | | |
|
| |\ \ \ \
| |/ / /
| | / /
| |/ /
|/| | |
--HG--
branch : open_mode
|
| | | | |
|
| | | | |
|
| | | | |
|
| |/ / |
|
| | | |
|
| | | |
|