summaryrefslogtreecommitdiff
path: root/pylint/test/functional
Commit message (Collapse)AuthorAgeFilesLines
* Move files that were in the wrong directoryClaudiu Popa2019-09-254-288/+0
|
* Report unnecessary else after continue and breakRobert Schweizer2019-09-104-0/+288
| | | | Close #2327
* Stopped installing tests with packageAshley Whetter2019-06-20820-18390/+0
|
* Ignore ``consider-using-dict-comprehension`` for constructions that can't be ↵Claudiu Popa2019-06-201-0/+3
| | | | | | converted to a comprehension Close #2963
* Add test for regression. Close #2443Claudiu Popa2019-06-022-0/+30
|
* Add test for fixed issue. Close #2937Claudiu Popa2019-06-011-0/+20
|
* Add test to prove that issue is fixed. Close #2939Claudiu Popa2019-05-301-0/+17
|
* Fixed false positives for function stubs (#2927)Ashley Whetter2019-05-263-0/+54
| | | Close #1581
* ``unused-import`` emitted for the right import names in function scopes.Claudiu Popa2019-05-232-0/+6
| | | | Close #2928
* Can choose decorators that mutate a function's signature (#2926)Ashley Whetter2019-05-232-0/+22
| | | Close #259
* ``assignment-from-no-return`` not triggered for async methods.Claudiu Popa2019-05-231-2/+10
| | | | Close #2902
* Don't emit ``attribute-defined-outside-init`` for variables defined in setters.Claudiu Popa2019-05-211-0/+13
| | | | Close #409
* Fixed pragmas on their own line after a backlash being ignored (#2923)Ashley Whetter2019-05-211-0/+10
| | | Closes #199
* Fixed false positive for `undefined-loop-variable`Ashley Whetter2019-05-201-0/+11
| | | | Closes #202
* Support fully qualified typing imports for type annotations.Claudiu Popa2019-05-202-2/+18
| | | | Close #2915
* Add test to demonstrate that a recursion error does not happen. Close #2906Claudiu Popa2019-05-191-0/+14
|
* Exclude ``__dict__`` from ``attribute-defined-outside-init``Claudiu Popa2019-05-191-0/+5
| | | | Close #2909
* Added subprocess.run explicit set `check` argument checker. Closes #2848fadedDexofan2019-04-193-0/+9
|
* When we can't infer bare except handlers, skip ``try-except-raise``Claudiu Popa2019-04-092-10/+0
| | | | Close #2853
* Handle more `unnecessary-lambda` cases when dealing with additional kwargs ↵Claudiu Popa2019-04-031-0/+2
| | | | | | in wrapped calls Close #2845
* Better postponed evaluation of annotations handlingClaudiu Popa2019-04-031-0/+4
| | | | Close #2847
* Support postponed evaluation of annotations for variable annotations.Claudiu Popa2019-03-291-0/+9
| | | | Close #2838
* Drop the quotes to make the test actually workClaudiu Popa2019-03-271-1/+1
|
* Add preferred-modules option and checkPaul Renvoisé2019-03-273-0/+9
| | | | | This allow users to specify a set of preferred modules that should be used instead of other modules.
* Feat - Makes C0412 (ungrouped-imports) compatible with isort (#2824)Pierre Sassoulas2019-03-225-3/+15
| | | Closes #2806.
* Add new linter: dict-iter-missing-itemsyory82019-03-202-0/+24
| | | | | | | Add a new linter to check against forgotten calls to `.items()` when iterating through a dictionary in a `for` loop. Close #2761
* Add a new ``missing-parentheses-for-call-in-test`` checkhippo912019-03-194-25/+138
| | | | | | This is emitted in case a call to a function is made inside a test but it misses parentheses. It is a more specialised form of `using-constant-test`, but tailored specifically to callables. Close #2658
* Make ``len-as-condition`` only fire when a ``len(x)`` call is made without ↵Paul Renvoise2019-03-192-48/+69
| | | | | | | an explicit comparison This commit reduce the scope of `len-as-condition` to only care when a `len(SEQUENCE)` call is made without an explicit comparison, as stated in PEP8.
* Fix misattribution of `unused import` (#2672)Jim Robertson2019-03-192-2/+7
| | | | Fixed issue where import statements with multiple import arguments wouldn't flag the correct missing package.
* ``assigning-non-slot`` not emitted for classes with unknown base classes.Claudiu Popa2019-03-111-0/+8
| | | | | | | | | It's possible to lint classes that don't have known bases (e.g. one of them might come from a C extension), in which case we cannot make a lot of assumptions about the class layout with respect to `__slots__`. As such, it's best to ignore these classes from this check. Close #2807
* Also adjust the line numbersClaudiu Popa2019-03-051-13/+13
|
* Remove another method that's removed in 3.8Claudiu Popa2019-03-052-2/+0
|
* Split deprecated_methods for Python 3.8 to account for removed methodsClaudiu Popa2019-03-054-0/+63
|
* Added a new check `class-variable-slots-conflict`Claudiu Popa2019-03-032-1/+24
| | | | | This check is emitted when ``pylint`` finds a class variable that conflicts with a slot name, which would raise a ``ValueError`` at runtime.
* CRF: added a separate test for the bugfixFantix King2019-02-222-3/+16
|
* Fix bug of W0120Fantix King2019-02-222-2/+3
| | | | When break is deep in the else of an inner loop, W0120 was raised.
* Protect against `NonDeducibleTypeHierarchy` when calling semi-private ↵Claudiu Popa2019-02-192-0/+26
| | | | | | | | | | | | `is_subtype` `astroid.helpers.is_subtype` raises `NonDeducibleTypeHierarchy` when it cannot infer the base classes of the given types, but that makes sense in its context given that the method is mostly used to inform the inference process about the hierarchy of classes. Doesn't make that much sense for ``pylint`` itself, which is why we're handling the exception here, rather than in ``astroid`` Close PyCQA/astroid#644
* Add test case for #2553Claudiu Popa2019-02-131-0/+11
|
* Allow ``BaseException`` for emitting ``broad-except``, just like ``Exception``.Claudiu Popa2019-02-132-1/+8
| | | | Close #2741
* Fixed a crash that occurred for ``bad-str-strip-call`` when ``strip()`` ↵Claudiu Popa2019-02-131-0/+1
| | | | | | received ``None`` Close #2743
* Split the test in two files for separate Python versionsClaudiu Popa2019-02-133-2/+8
|
* Fix a crash caused by iterating over ``Uninferable`` in a string formatting ↵Claudiu Popa2019-02-111-1/+3
| | | | | | check. Close #2727
* Take into account `__class_getitem__` Pascal Corpet2019-02-046-0/+40
| | | | | | | | Take into account `__class_getitem__` from PEP 560 and fixes some false positives for `no-self-argument` and `unsubscriptable-object` PEP: https://www.python.org/dev/peps/pep-0560/ Close #2416
* Support ``Ellipsis`` as a synonym for ``pass`` statements.Claudiu Popa2019-02-041-0/+10
| | | | Close #2718
* Add a new option 'check-str-concat-over-line-jumps' to check ↵Lucas Cimon2019-01-313-0/+7
| | | | 'implicit-str-concat-in-sequence'
* Move the unused variable regression test to a Python 3.6 specific fileClaudiu Popa2019-01-304-13/+15
|
* Disable test temporarily until we fix the context problem in astroidClaudiu Popa2019-01-232-4/+3
|
* Add test case for #2588Claudiu Popa2019-01-231-1/+16
|
* Add test case for #2667Claudiu Popa2019-01-212-0/+9
|
* Add test that a recursion error does not happen any longer. Close #2683Claudiu Popa2019-01-202-0/+13
|