summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* Add support for positional only arguments in astroid for python 3.8Claudiu Popa2019-07-094-1/+80
|
* Grab the Constant value on Python 3.8+Claudiu Popa2019-07-071-1/+2
|
* Grab only Constant strings for docstringsClaudiu Popa2019-07-062-12/+19
|
* Add test for extracting a doc to make sure we have it working on Python 3.8Claudiu Popa2019-07-061-0/+11
|
* Fix formattingClaudiu Popa2019-07-061-2/+4
|
* Fix finding of docstring under python3.8Zbigniew Jędrzejewski-Szmek2019-07-061-2/+4
| | | | | | | It is stored as a Constant, not a Str, so we the the value a bit differently. Fixes one test failure in https://github.com/gristlabs/asttokens/issues/28.
* Fix non-existing pytest --pyarg option (#682)Thomas Hisch2019-07-051-1/+1
| | | | Fixes a typo introduced in 18591e5e3e18026c770c48cbc044a77333231fc5
* Merge pull request #680 from rogalski/as-string-code-formattingClaudiu Popa2019-07-055-6/+10
|\ | | | | Annotated AST follows PEP8 coding style when converted to string.
| * Annotated AST follows PEP8 coding style when converted to string.Łukasz Rogalski2019-06-225-6/+10
|/
* Drop support for Python 3.4Claudiu Popa2019-06-206-12/+10
|
* Make sure that node.expr points to a Name before calling looks_like_numpy_memberClaudiu Popa2019-06-201-0/+1
|
* Maintain the same line number for decorators for Python 3.8+Claudiu Popa2019-06-041-4/+8
|
* Adjust a line number test for Python 3.8Claudiu Popa2019-06-021-8/+2
|
* Set the line number of decorated functions for python 3.8Claudiu Popa2019-06-021-1/+15
| | | | | | | | | | Python 3.8 sets the line number of a decorated function to be the actual line number of the function, but the previous versions expected the decorator's line number instead. We reset the function's line number to that of the first decorator to maintain backward compatibility. It's not ideal but this discrepancy was baked into the framework for *years*.
* Fix lint errorsClaudiu Popa2019-06-022-9/+6
|
* Replace _verify_duplicates_mro with _clean_duplicates_mro.Peter de Blanc2019-06-023-12/+44
| | | | | 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 testClaudiu Popa2019-06-021-1/+1
|
* ``assert`` only functions are properly inferred as returning ``None``Claudiu Popa2019-06-023-1/+25
| | | | Close #668
* Merge pull request #664 from hippo91/bug_pylint_2721Claudiu Popa2019-06-0220-1217/+1874
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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_2721Claudiu Popa2019-06-0212-11/+232
| |\
| * \ Merge branch 'master' into bug_pylint_2721hippo912019-06-012-28/+25
| |\ \
| * | | Deleting useless subTest mock for python version prior to 3.4hippo912019-05-258-192/+8
| | | |
| * | | Avoid use of inference engine before it is fully set up. Add docstringshippo912019-05-251-2/+34
| | | |
| * | | Deleting personal setuphippo912019-05-251-3/+0
| | | |
| * | | Merge branch 'bug_pylint_2721' of https://github.com/hippo91/astroid into ↵hippo912019-05-252-1/+8
| |\ \ \ | | | | | | | | | | | | | | | bug_pylint_2721
| | * | | Add the references to pylint bugs correctedhippo912019-04-261-0/+6
| | | | |
| | * | | Corrects the way a numpy member is identifiedhippo912019-04-261-1/+1
| | | | |
| * | | | Merge branch 'master' into bug_pylint_2721hippo912019-05-2512-6/+127
| |\ \ \ \ | | |/ / / | |/| | |
| * | | | Refomat according to blackhippo912019-04-2115-99/+143
| | | | |
| * | | | Refactor to make the introduction of new functions easierhippo912019-04-211-19/+16
| | | | |
| * | | | Factorize functions inference systemhippo912019-04-203-63/+48
| | | | |
| * | | | Reformat for easier new function introductionhippo912019-04-201-98/+32
| | | | |
| * | | | Add definition for numpy.ones and numpy.zeros functionshippo912019-04-204-0/+37
| | | | |
| * | | | Add the function numpy.emptyhippo912019-04-202-0/+15
| | | | |
| * | | | Add the __init__ method for datetime64and timedelta64hippo912019-04-202-2/+16
| | | | |
| * | | | Add .python-version file and .vscode directoryhippo912019-04-203-1/+5
| | | | |
| * | | | Add the tests concerning ndarray classic methodshippo912019-04-201-1/+41
| | | | |
| * | | | Rename brain_numpy module and associated unit test modulehippo912019-04-202-2/+2
| | | | |
| * | | | Refactor in order to test the methods of ndarrayhippo912019-04-201-14/+49
| | | | |
| * | | | Correct prototypes of 3 dunder methods.hippo912019-04-201-3/+3
| | | | |
| * | | | Merge branch 'master' into bug_pylint_2721hippo912019-04-136-8/+87
| |\ \ \ \
| * | | | | Add a unittest dedicated to the numpy_core_fromnumeric brainhippo912019-04-071-0/+77
| | | | | |
| * | | | | Typo.hippo912019-04-072-2/+2
| | | | | |
| * | | | | Add logspace et geomspace functionshippo912019-04-071-1/+27
| | | | | |
| * | | | | Reformathippo912019-04-071-11/+8
| | | | | |
| * | | | | Split the unittest_brain_numpy modulehippo912019-04-073-12/+164
| | | | | |
| * | | | | Check that functions return a ndarrayhippo912019-04-071-0/+26
| | | | | |
| * | | | | Split the unittest_brain_numpyhippo912019-04-074-305/+421
| | | | | |
| * | | | | Changes uninferable return toward correct oneshippo912019-04-071-65/+64
| | | | | |
| * | | | | Split the unittest_brain_numpy module in parts so that each brain_numpy_* ↵hippo912019-04-063-94/+368
| | | | | | | | | | | | | | | | | | | | | | | | module has its own unittest module