Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Moved tests out of package directory (#704) | Ashley Whetter | 2019-10-15 | 145 | -17495/+0 |
| | |||||
* | Fix lint warnings | Claudiu Popa | 2019-10-11 | 1 | -15/+0 |
| | |||||
* | All type comments have as parent the corresponding `astroid` node | Claudiu Popa | 2019-10-09 | 1 | -0/+21 |
| | | | | | | | Until now they had as parent the builtin `ast` node which meant we were operating with primitive objects instead of our own. Close PyCQA/pylint#3174 | ||||
* | Allow annotated assign with attrs | Tomas Novak | 2019-09-26 | 1 | -0/+13 |
| | |||||
* | A transform for the builtin `dataclasses` module was added. | Claudiu Popa | 2019-09-26 | 1 | -0/+33 |
| | | | | | | | | | | This should address various `dataclasses` issues that were surfaced even more after the release of pylint 2.4.0. In the previous versions of `astroid`, annotated assign nodes were allowed to be retrieved via `getattr()` but that no longer happens with the latest `astroid` release, as those attribute are not actual attributes, but rather virtual ones, thus an operation such as `getattr()` does not make sense for them. | ||||
* | Clean new pylint errors from the codebase | Claudiu Popa | 2019-09-24 | 6 | -46/+15 |
| | |||||
* | Skip test that does not work on Python 3.8 due to library differences | Claudiu Popa | 2019-09-12 | 1 | -0/+5 |
| | |||||
* | Update http brain tips to support `phrase` and `description` | Claudiu Popa | 2019-09-12 | 1 | -0/+13 |
| | | | | Close PyCQA/pylint#2950 | ||||
* | Fix linting errors | Claudiu Popa | 2019-09-11 | 2 | -3/+0 |
| | |||||
* | Add a brain tip for ``subprocess.check_output`` | Claudiu Popa | 2019-09-11 | 1 | -0/+12 |
| | | | | Close #689 | ||||
* | Remove copyright header and simplify the files to a simple class | Claudiu Popa | 2019-09-11 | 2 | -18/+0 |
| | | | | | | | | We had two "copyrighted" files in the repo but they were containing a basic class with a simple `__init__` method, so there's no need to keep that around. Close #685 | ||||
* | Remove redundant compatibility code (#693) | Hugo van Kemenade | 2019-09-10 | 8 | -130/+33 |
| | |||||
* | Add brain tips for `crypt`. Close PyCQA/pylint#3047 | Grygorii Iermolenko | 2019-08-22 | 1 | -0/+16 |
| | |||||
* | Fix typed_ast based tests for Python 3.8 | Claudiu Popa | 2019-07-10 | 1 | -2/+8 |
| | |||||
* | Run f string debug test on Python 3.8+ | Claudiu Popa | 2019-07-10 | 1 | -0/+1 |
| | |||||
* | Remove `__class__` from FunctionDef locals, instead look it up in the ↵ | Claudiu Popa | 2019-07-10 | 1 | -2/+2 |
| | | | | | | | | | | current scope Previously `__class__` was added as an implicit local for methods, but that causes some issues as it now is counted as a local instead of a special object created by the compiler. A better way to be able to find `__class__` is to look it up in the current scope. Close PyCQA/pylint#1825 | ||||
* | Add a simple test for f-string debug mode | Claudiu Popa | 2019-07-10 | 1 | -0/+6 |
| | |||||
* | Relax the spreading of defaults to both positional only and positional or ↵ | Claudiu Popa | 2019-07-10 | 1 | -0/+6 |
| | | | | keywords arguments | ||||
* | Use inspect.signature instead of using inspect.getargspec | Claudiu Popa | 2019-07-09 | 1 | -1/+5 |
| | |||||
* | Add support for finding positional only arguments using the Arguments APIs | Claudiu Popa | 2019-07-09 | 2 | -0/+31 |
| | |||||
* | Build FunctionDef.__get__ to use positional only arguments when inferring ↵ | Claudiu Popa | 2019-07-09 | 1 | -2/+12 |
| | | | | the bound method | ||||
* | Introduce a new argument to `Arguments` for storing the positional only ↵ | Claudiu Popa | 2019-07-09 | 1 | -0/+16 |
| | | | | | | | | | annotations The annotations were stored until now in `.annotations` and `kwonlyargs_annotations`, but given the addition of `posonlyargs`, we need to store the positional only annotations somewhere else as well. This new attribute should simplify the handling of annotations for both positional only and positional or keyword parameters. | ||||
* | Add support for positional only arguments in astroid for python 3.8 | Claudiu Popa | 2019-07-09 | 1 | -0/+43 |
| | |||||
* | Grab only Constant strings for docstrings | Claudiu Popa | 2019-07-06 | 1 | -0/+9 |
| | |||||
* | Add test for extracting a doc to make sure we have it working on Python 3.8 | Claudiu Popa | 2019-07-06 | 1 | -0/+11 |
| | |||||
* | Annotated AST follows PEP8 coding style when converted to string. | Łukasz Rogalski | 2019-06-22 | 2 | -3/+3 |
| | |||||
* | Adjust a line number test for Python 3.8 | Claudiu Popa | 2019-06-02 | 1 | -8/+2 |
| | |||||
* | Fix lint errors | Claudiu Popa | 2019-06-02 | 1 | -4/+4 |
| | |||||
* | Replace _verify_duplicates_mro with _clean_duplicates_mro. | Peter de Blanc | 2019-06-02 | 1 | -0/+17 |
| | | | | | Only raise DuplicateBasesError if the first node is duplicated; otherwise remove all but the last instance of each duplicated node. | ||||
* | Use the proper test index for a NamedExpr test | Claudiu Popa | 2019-06-02 | 1 | -1/+1 |
| | |||||
* | ``assert`` only functions are properly inferred as returning ``None`` | Claudiu Popa | 2019-06-02 | 1 | -0/+14 |
| | | | | Close #668 | ||||
* | Merge pull request #664 from hippo91/bug_pylint_2721 | Claudiu Popa | 2019-06-02 | 9 | -660/+1072 |
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Deep rework of the numpy brain. The original brain has been split into numerous one. Each numpy brain module corresponds to a numpyone. There are: brain_numpy_core_fromnumeric => numpy.core.fromnumeric brain_numpy_core_function_base => numpy.core.function_base brain_numpy_core_multiarray => numpy.core.multiarray brain_numpy_core_numeric => numpy.core.numeric brain_core_numerictypes => numpy.core.numerictypes brain_core_umath => numpy.core.umath brain_numpy_random_mtrand => numpy.random.mtrand Last but not least, the numpy.ndarray class has its corresponding astroid's brain (brain_numpy_ndarray). The major improvement, besides a clearer organisation, is the fact that each method of the ndarray class should now be correctly inferred. Especially those returning ndarray objects. It has been made possible by ensuring that the return type of those methods is inferred as ndarray and nothing else. To achieve this, the inference_tip function has been used. When a numpy callable may return two different kinds of objects, for example bool or ndarray, the choice to prefer ndarray has been made in the corresponding astroid brain method. | ||||
| * | Merge branch 'master' into bug_pylint_2721 | Claudiu Popa | 2019-06-02 | 3 | -0/+108 |
| |\ | |||||
| * | | Deleting useless subTest mock for python version prior to 3.4 | hippo91 | 2019-05-25 | 8 | -192/+8 |
| | | | |||||
| * | | Merge branch 'master' into bug_pylint_2721 | hippo91 | 2019-05-25 | 4 | -0/+64 |
| |\ \ | |||||
| * | | | Refomat according to black | hippo91 | 2019-04-21 | 6 | -58/+105 |
| | | | | |||||
| * | | | Add definition for numpy.ones and numpy.zeros functions | hippo91 | 2019-04-20 | 2 | -0/+2 |
| | | | | |||||
| * | | | Add the function numpy.empty | hippo91 | 2019-04-20 | 1 | -0/+1 |
| | | | | |||||
| * | | | Add the tests concerning ndarray classic methods | hippo91 | 2019-04-20 | 1 | -1/+41 |
| | | | | |||||
| * | | | Rename brain_numpy module and associated unit test module | hippo91 | 2019-04-20 | 1 | -1/+1 |
| | | | | |||||
| * | | | Refactor in order to test the methods of ndarray | hippo91 | 2019-04-20 | 1 | -14/+49 |
| | | | | |||||
| * | | | Merge branch 'master' into bug_pylint_2721 | hippo91 | 2019-04-13 | 1 | -0/+58 |
| |\ \ \ | |||||
| * | | | | Add a unittest dedicated to the numpy_core_fromnumeric brain | hippo91 | 2019-04-07 | 1 | -0/+77 |
| | | | | | |||||
| * | | | | Typo. | hippo91 | 2019-04-07 | 1 | -1/+1 |
| | | | | | |||||
| * | | | | Split the unittest_brain_numpy module | hippo91 | 2019-04-07 | 3 | -12/+164 |
| | | | | | |||||
| * | | | | Check that functions return a ndarray | hippo91 | 2019-04-07 | 1 | -0/+26 |
| | | | | | |||||
| * | | | | Split the unittest_brain_numpy | hippo91 | 2019-04-07 | 4 | -305/+421 |
| | | | | | |||||
| * | | | | Split the unittest_brain_numpy module in parts so that each brain_numpy_* ↵ | hippo91 | 2019-04-06 | 3 | -94/+368 |
| | | | | | | | | | | | | | | | | | | | | module has its own unittest module | ||||
| * | | | | Deleting test about __inv__ method which doesn't exists in ndarray | hippo91 | 2019-04-06 | 1 | -187/+1 |
| | | | | | |||||
| * | | | | Merge branch 'master' into bug_pylint_2721 | hippo91 | 2019-04-06 | 2 | -0/+44 |
| |\ \ \ \ |