summaryrefslogtreecommitdiff
path: root/pylint/test
Commit message (Collapse)AuthorAgeFilesLines
* MergeCosmin Poieana2015-05-0821-186/+157
|\
| * Emit a proper deprecation warning for reporters.BaseReporter.add_message.Claudiu Popa2015-05-071-1/+18
| | | | | | | | | | The alternative way is to use handle_message. add_message will be removed in Pylint 1.6.
| * Remove trailing whitespace.Claudiu Popa2015-05-071-1/+1
| |
| * Remove the rest of interface checks.Claudiu Popa2015-05-054-141/+0
| | | | | | | | | | | | | | The removed checks are interface-is-not-class, missing-interface-method, unresolved-interface. The reason is that its better to start recommending ABCs instead of the old Zope era of interfaces.
| * Remove interface-not-implemented warning. Closes issue #532.Claudiu Popa2015-05-055-38/+3
| |
| * Forgot to add tests for the new warnings.Claudiu Popa2015-05-034-0/+26
| |
| * Remove erroneously included test.James Morgensen2015-05-021-12/+0
| |
| * Make fix for #223 more readable; add a test and a ChangeLog line.James Morgensen2015-05-011-0/+60
| |
| * Lookup in the implicit metaclass when checking for no-member.Claudiu Popa2015-04-254-2/+20
| | | | | | | | | | | | If the class in question has an implicit metaclass, which is True for new style classes, then we can look into in when we are doing a dot access on it. Closes issue #438.
| * Don't emit no-member for classes with unknown bases.Claudiu Popa2015-04-242-4/+16
| | | | | | | | | | Since we don't know what those bases might add, we simply ignore the error in this case.
| * Move more no-member filters inside _emit_no_member. Add more tests.Claudiu Popa2015-04-242-2/+28
| |
* | Improve method regexp for those that require docstringsCosmin Poieana2015-04-201-0/+9
|/
* Look for __init__ instead of __new__ in _determine_callable_obj if __new__ ↵Claudiu Popa2015-04-192-0/+9
| | | | | | | | | comes from builtins. Since the __new__ comes from builtins, it will not have attached any information regarding what parameters it expects, so the check will be useless. Retrieving __init__ in that case will at least detect a couple of false negatives. Closes issue #429.
* Add logic for retrieving the HOME for Jython.Claudiu Popa2015-04-181-3/+9
|
* Provide some hints for the bad-builtin message. Closes issue #522.Claudiu Popa2015-04-183-3/+5
|
* Simplify the not-context-manager check, by doing a simple parent lookup on a ↵Claudiu Popa2015-04-162-0/+33
| | | | Generator.
* Don't emit redefined-outer-name for __future__ directives.Claudiu Popa2015-04-161-2/+9
| | | | Closes issue #520.
* Provide a context file for get_module_part. This prevents a crash with ↵Claudiu Popa2015-04-133-0/+15
| | | | various packages.
* Don't emit missing-docstring for private functions.Claudiu Popa2015-04-082-0/+29
|
* Fix a bad-reversed-sequence false positive.Claudiu Popa2015-04-071-1/+12
| | | | | This patch looks for a __reversed__ method for subclasses of dict (this is especially present in OrderedDict implementations).
* Don't warn about no-self-use for builtin properties.Claudiu Popa2015-04-061-1/+13
|
* Merged in raduciorba/pylint/unused-import (pull request #244)Claudiu Popa2015-04-02103-401/+438
|\ | | | | | | #475 fix unused-import false positive when the import is used in a class assignment
| * Update test for not-context-manager when context node is a NameRadu Ciorba2015-04-021-1/+3
| | | | | | | | | | Adds the case that caused the crash, a contextlib.contextmanager referenced by name.
| * Handle the case for not-context-manager when the context node is a Name.Claudiu Popa2015-04-012-0/+13
| | | | | | | | This fixes a crash.
| * Don't fail in the string checker when encountering a bytes string on Python ↵Claudiu Popa2015-04-011-0/+41
| | | | | | | | 3 with a .format method called.
| * Add Changelog entry and cleanup after changeset 2307df9Claudiu Popa2015-03-312-17/+0
| |
| * Remove "pointless-except" checkerSteven Myint2015-03-303-6/+1
| | | | | | | | This fixes #506.
| * Fix failing test.Claudiu Popa2015-03-282-3/+3
| |
| * Port more tests from the old test style to the new test style.Claudiu Popa2015-03-2893-375/+378
| |
* | add another test case + fixed an import errorRadu Ciorba2015-03-302-1/+4
| |
* | update the testRadu Ciorba2015-03-301-2/+3
| |
* | add functional tests for unsed import false positive #475Radu Ciorba2015-03-281-2/+5
|/
* boolean-datetime is disabled for Python 3.5+Claudiu Popa2015-03-261-0/+2
|
* For Python 3.3 we get a different error, use the default test for it.Claudiu Popa2015-03-261-0/+0
|
* Fix some tests for the drone.io.Claudiu Popa2015-03-264-8/+3
|
* Finish converting tests to work both on Python 2 and 3. Also, drop 2to3 for ↵Claudiu Popa2015-03-2615-20/+50
| | | | tests.
* Don't emit an unused-wildcard-import for imported __future__ names from ↵Claudiu Popa2015-03-261-1/+0
| | | | other modules.
* Try to make the tests compatible with both Python 2 and Python 3.Claudiu Popa2015-03-2673-402/+406
|
* merged default from logilab/pylint and resolve conflictnot-context-managerRadu Ciorba2015-03-232-0/+28
|\
| * add warning for confusing usage of with statementconfusing-with-statementRadu Ciorba2015-03-222-0/+28
| | | | | | | | | | | | Emitted when an ambiguous looking with statement is used. For example `with open() as first, second` which looks like a tuple assignment but is actually 2 context managers.
* | add 'not-context-manager' errorRadu Ciorba2015-03-222-0/+47
|/ | | | | Checks that whatever you use in a with statement implements __enter__ and __exit__ or is decorated with contextlib.contextmanager.
* Promote a couple of warnings to errors.Claudiu Popa2015-03-203-8/+8
| | | | | | | | These warnings were promoted since they could uncover potential bugs in the code and since most people are using `pylint -E` anyway, it's good to have them as errors. These warnings are: assignment-from-none, unbalanced-tuple-unpacking, unpacking-non-sequence, non-iterator-returned. Closes issue #388.
* Merged in myint/pylint (pull request #237)Claudiu Popa2015-03-183-14/+14
|\ | | | | | | Add "duplicate-except" checker. Patch by Steven Myint.
| * Handle the case where SyntaxError is reraised as AstroidBuildingException.Claudiu Popa2015-03-181-1/+1
| |
| * Add an extra hint (ex: "add 3 spaces") to bad-continuation message.Daniel Balparda2015-03-172-13/+13
| |
* | Move to functional per Claudiu's noteSteven Myint2015-03-143-16/+13
| |
* | Disable irrelevant checkSteven Myint2015-03-141-1/+1
| |
* | RevertSteven Myint2015-03-141-11/+0
| |
* | Add "duplicate-except" checkerSteven Myint2015-03-133-1/+28
|/ | | | | It checks if an exception type was already caught previously in the same try/except. This fixes #485.
* Remove abstract-class-not-used, for the same reasons as star-args and ↵Claudiu Popa2015-03-1111-59/+40
| | | | abstract-class-little-referenced.