summaryrefslogtreecommitdiff
path: root/pylint/test
Commit message (Collapse)AuthorAgeFilesLines
* Add checker for membership rules and testsmembership-test-checkerDmitry Pribysh2015-10-198-0/+176
| | | | | | | | Idea of checking is very simple: value used to the right of the 'in' operator should support membership test protocol (i.e. define either __contains__ or __iter__ or __getitem__). Fixes issue #589.
* Change the numeric ids of the new checkers.Claudiu Popa2015-10-181-0/+2
|
* Merge with defaultiterable-checkerDmitry Pribysh2015-10-1821-1/+313
|\
| * Make iterable/mapping checker more smart and refactor it.Dmitry Pribysh2015-10-1516-15/+145
| | | | | | | | | | Now it ignores errors inside mixins declarations and is able to recognize iterable/mapping metaclasses.
| * Remove redundant unittests for iterable checkerDmitry Pribysh2015-10-081-135/+0
| |
| * Handle more corner cases in iterable/mapping checkerDmitry Pribysh2015-10-084-31/+95
| |
| * Add more positive functional tests for the iterable context checkerDmitry Pribysh2015-10-082-25/+79
| |
| * Move iterable checker to typecheck module and alter inference strategyDmitry Pribysh2015-10-082-144/+144
| |
| * Add functional tests for iterable heckerDmitry Pribysh2015-10-075-0/+56
| |
| * Alter inference strategy in iterable/mapping checkerDmitry Pribysh2015-10-071-23/+2
| |
| * Improve iterable inference and add more unit tests for iterable checkerDmitry Pribysh2015-10-061-6/+48
| |
| * Add iterable checking for all types of comprehensions.Dmitry Pribysh2015-10-051-0/+15
| | | | | | | | | | Specifically, list, dict and set comprehensions along with generator expressions.
| * Add initial version of checker for iterables/mappings.Dmitry Pribysh2015-10-051-0/+107
| | | | | | | | | | | | | | | | | | | | | | | | It checks for the following things: - for-statement should contain an iterable value - `yield from`-statement should contain an iterable value - function call with star args should contain iterable value (e.g. in `foo(*bar)` bar should be an iterable) - function call with kwargs should contain a mapping (e.g. in `foo(**bar)` bar should be a dict) Idea came from issue #563.
* | Forgot to add test file.Claudiu Popa2015-10-181-0/+5
| |
* | Merged in dmand/pylint/fix-667 (pull request #287)Claudiu Popa2015-10-183-0/+15
|\ \ | | | | | | | | | Make `no-self-use` checker not throw a warning if method has a `super()` call.
| * | Make `no-self-use` checker not throw a warning if method has a `super()` call.Dmitry Pribysh2015-10-173-0/+15
| |/ | | | | | | | | | | | | This is only enabled for python 3.0+ and only for `super` calls with no arguments. Fixes issue #667.
* | Decode the docstring before attempting to parse it with the spelling checkerClaudiu Popa2015-10-161-0/+5
| | | | | | | | | | Also, the patch changes calls to str() in the list of html reporter's messages only for the objects which aren't already unicode or byte strings.
* | Port more old tests to the new style tests and remove obsolete tests.Claudiu Popa2015-10-1217-98/+83
| |
* | --enable=all can now be used. Closes issue #142.Claudiu Popa2015-10-101-0/+12
| |
* | Don't warn about Starred nodes used properly in unpacking contextsClaudiu Popa2015-10-102-0/+6
| | | | | | | | Closes issue #653
* | Add a new error, 'repeated-keyword', when a keyword argument is passed ↵Claudiu Popa2015-10-096-1/+64
|/ | | | | | | | | | multiple times into a function call. This is similar with redundant-keyword-arg, but it's mildly different that it needs to be a separate error. This change also uses a CallSite for understanding the arguments that were passed into a function call, since with this we can make sense about multiple starred arguments passed into (PEP 448).
* Fix the line number of the expected message.Claudiu Popa2015-10-041-1/+1
|
* Don't emit 'assigning-non-slot' for descriptors. Closes issue #652.Claudiu Popa2015-10-042-3/+37
|
* Merged in cezarelnazli/pylint (pull request #281)Claudiu Popa2015-10-043-0/+12
|\ | | | | | | Add functional tests for PEP 448
| * More PEP 448 testsCezar2015-10-041-1/+4
| |
| * Add functional tests for PEP 448Cezar2015-10-043-0/+9
| |
* | Rename the name of the singleton-comparison test files.Claudiu Popa2015-10-042-0/+0
| |
* | Merged in dmand/pylint/comparison-checker (pull request #280)Claudiu Popa2015-10-043-0/+62
|\ \ | |/ |/| | | Add checker for comparisons to singleton values (True, False, None)
| * Add initial version of comparison checkercomparison-checkerDmitry Pribysh2015-10-033-0/+62
| | | | | | | | | | It checks for expressions like 'x == True', 'x == False' and 'x == None' and suggests the correct usage ('x', 'not x', 'x is None').
* | Port more old tests to the new style tests and remove obsolete tests.Claudiu Popa2015-10-0324-205/+74
|/
* Add checker to identify multiple imports on one line.Dmitry Pribysh2015-10-015-3/+23
| | | | Fixes issue #598. Had to modify some functional tests to ignore new message.
* Update the list of special methods with the methods added in PEP 492.Claudiu Popa2015-10-012-1/+20
|
* Start adding a protocol checker for the async features added in PEP 492:Claudiu Popa2015-10-016-0/+94
| | | | | | | | | | | | | | * this patch adds the basis of a new checker, 'async', which deals with problems that can occur when working with async features added in Python with PEP 492. * We're also adding a new error, 'yield-inside-async-function', emitted on Python 3.5 and upwards when the `yield` statement is found inside a new coroutine function (PEP 492). * Another new error is added, 'not-async-context-manager', emitted when an async context manager block is used with an object which doesn't support this protocol (PEP 492).
* Port more old style tests to new style tests.Claudiu Popa2015-10-0120-144/+98
|
* Don't consider a class abstract if its members can't be properly inferred.Claudiu Popa2015-09-304-14/+43
| | | | | This fixes a false positive related to abstract-class-instantiated. Closes issue #648.
* Port more tests to the new test format.Claudiu Popa2015-09-3021-86/+35
|
* Fix the tests.Claudiu Popa2015-09-293-4/+4
|
* Port some old style tests to new style tests.Claudiu Popa2015-09-2916-74/+30
|
* Remove unused linefix-362moylop2602015-09-271-1/+0
|
* Fix #362 - support in import and add testmoylop2602015-09-275-1/+15
|
* Grammar fix.Claudiu Popa2015-09-231-4/+4
|
* Retrieve the qualified name only after filtering the proper needs.Claudiu Popa2015-09-211-1/+8
|
* Show what nonlocal was found without a binding.Claudiu Popa2015-09-212-1/+13
|
* Add changelog entry for 014f596 and a couple of other fixes.Claudiu Popa2015-09-211-2/+2
|
* Merged in matrixise/pylint/fix-582 (pull request #274)Claudiu Popa2015-09-214-1/+24
|\ | | | | | | Add a new check for the nonlocal variables without binding (close issue #582)
| * Add a new check for the nonlocal variables without binding (close issue #582)fix-582Stephane Wirtel2015-09-214-1/+24
| |
* | Fix issue #314: bad-whitespace looks weird when the line does not end with ↵Fabio Natali2015-09-212-0/+10
| | | | | | | | newline
* | Improve the test suite for deprecated-methodClaudiu Popa2015-09-214-11/+34
|/
* Fix tests and use all the inference results when checking for bad-open-mode ↵Claudiu Popa2015-09-212-6/+6
| | | | and deprecated-method
* Deprecation check based on Python versionCezar2015-09-207-7/+20
|