summaryrefslogtreecommitdiff
path: root/pylint/test
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-201063-34459/+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
|
* Now that we support IfExp inference, address a testClaudiu Popa2019-06-012-15/+15
|
* 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
* Use the right column number for syntax error on PyPyClaudiu Popa2019-05-201-3/+2
|
* Syntax errors report the column number.Claudiu Popa2019-05-201-1/+1
| | | | Close #2914
* Support fully qualified typing imports for type annotations.Claudiu Popa2019-05-202-2/+18
| | | | Close #2915
* Expect only certain errors from self regression testsClaudiu Popa2019-05-201-5/+13
| | | | | | | | These changes should fix a couple of failing tests when running the suite with pytest instead of tox. The reason for those failures was that pylint was reusing the config file from the root directory and some of its messages are disabled there. Close #2819
* 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
* Correct word pointed when the same word has more than one error in the same lineagutole2019-05-141-0/+57
| | | | Fixes #2895
* Fix crash in callable check (#2901)Martin Vielsmaier2019-05-051-0/+16
|
* fix old-division check for int(...) (#2892)Anthony Sottile2019-04-301-7/+22
|
* Flip around the message of broad_try_clauseClaudiu Popa2019-04-291-1/+1
|
* Add broad try clause extension. (#2890)Tyler Thieding2019-04-292-0/+66
| | | | | | | | | Add an extension checker (pylint.extensions.broad_try_clause) that enforces a configurable maximum number of statements inside of a try clause. This facilitates enforcing PEP 8's guidelines about try/except statements and the amount of code in the try clause: "Additionally, for all try/except clauses, limit the try clause to the absolute minimum amount of code necessary. Again, this avoids masking bugs."
* Add 'of' to GoogleDocstring multiple type (#2884)Zeb Nicholls2019-04-291-0/+15
| | | | | | | | | | | | | A docstring of the following form should pass (see https://sphinxcontrib-napoleon.readthedocs.io/en/latest/example_numpy.html, search for ':obj:list of :obj:str') def my_func(self): """This is a docstring. Returns ------- :obj:`list` of :obj:`str` List of strings """ return ["hi", "bye"] #@
* 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
* Refactor - Create file for BaseCheckerPierre Sassoulas2019-03-291-1/+1
| | | | It was 'hidden' in checkers.__init__.py
* Refactor - Move function for checker in CheckerPierre Sassoulas2019-03-293-8/+9
| | | | | | MsgStore.get_messages_from_checker => Checker.messages MsgStore.check_checker_consistency => Checker.check_consistency Probably makes more sense this way.
* Fix - Move checker.utils tests into their dedicated unittestPierre Sassoulas2019-03-292-195/+192
| | | | It turns out there is not that much utils unittests.
* Refactor - Create a new file for ASTWalker unittestPierre Sassoulas2019-03-292-61/+71
|
* Refactor - Move refactor.utils function to the utils packagePierre Sassoulas2019-03-292-3/+2
| | | | | | | This permit to have less cross dependency as the utils package does not depend on anything. The checker package still depends on reporter. Also moved classes from __init__ to their own file in reporter.
* Refactor - Avoid intra-packages circular dependencies for constantsPierre Sassoulas2019-03-291-5/+4
| | | | | | | | Some constants were package internal but were used by multiple packages. This created circular dependencies. By creating a file for constants we make sure this does not happen because we won't import everything important in this file and every thing else can depend on it.
* Support postponed evaluation of annotations for variable annotations.Claudiu Popa2019-03-291-0/+9
| | | | Close #2838
* ``epylint.py_run`` defaults to ``python`` in case the current executable is ↵Claudiu Popa2019-03-281-1/+0
| | | | | | not a Python one. Close #2837
* 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.
* Add/modify tests for checking raw docstring in Similarities checkerTaewon D. Kim2019-03-273-4/+20
| | | | | - Add an extra case to the examples used to test similarities checker - Modify outputs of tests (total number of lines and the percent changed)
* Don't recurse in inherit_from_std_exNathan Marrow2019-03-221-0/+15
| | | | | | | | Commit 79c71de changed inherit_from_std_ex to pass recurs=True to the call to ancestors. Since the ancestors call now recurses, there is no need for the inherit_from_std_ex function to recurse as well, especially since ancestors handles circular references (A inherits from B which inherits from A).
* 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
* Fix - A problem with comment handling in importPierre Sassoulas2019-03-201-1/+1
| | | | | Apparently black and isort do not behave the same. See : https://github.com/ambv/black/issues/251
* Fix - An error added when applying isort/black everywherePierre Sassoulas2019-03-202-5/+3
|
* Fix - C0412: Imports from package x are not groupedPierre Sassoulas2019-03-201-2/+3
|
* Style - Re-Apply black following the isort cleanupPierre Sassoulas2019-03-204-7/+7
| | | | Change with isort triggered change with black.
* Style - Apply isort on all apllicable filesPierre Sassoulas2019-03-2037-86/+68
|