Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Moved tests out of package directory (#704) | Ashley Whetter | 2019-10-15 | 1 | -2049/+0 |
| | |||||
* | Clean new pylint errors from the codebase | Claudiu Popa | 2019-09-24 | 1 | -2/+1 |
| | |||||
* | Remove redundant compatibility code (#693) | Hugo van Kemenade | 2019-09-10 | 1 | -34/+6 |
| | |||||
* | Relax the spreading of defaults to both positional only and positional or ↵ | Claudiu Popa | 2019-07-10 | 1 | -0/+6 |
| | | | | keywords arguments | ||||
* | Add support for finding positional only arguments using the Arguments APIs | Claudiu Popa | 2019-07-09 | 1 | -0/+16 |
| | |||||
* | Add support for positional only arguments in astroid for python 3.8 | Claudiu Popa | 2019-07-09 | 1 | -0/+43 |
| | |||||
* | Annotated AST follows PEP8 coding style when converted to string. | Łukasz Rogalski | 2019-06-22 | 1 | -1/+1 |
| | |||||
* | 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. | ||||
* | Reformat according to black | hippo91 | 2019-01-27 | 1 | -1/+1 |
| | |||||
* | Add docstring | hippo91 | 2019-01-27 | 1 | -0/+4 |
| | |||||
* | Fix unit test devoted to bound_methods and lambda through lambda factory | hippo91 | 2019-01-27 | 1 | -11/+11 |
| | |||||
* | Add of another unit test devoted to bound method lambdas. Not yet correct. | hippo91 | 2019-01-27 | 1 | -0/+19 |
| | |||||
* | Initial formatting of astroid | Claudiu Popa | 2018-10-02 | 1 | -624/+781 |
| | |||||
* | Filter out ``Uninferable`` when inferring the call result result of a class ↵ | Claudiu Popa | 2018-08-22 | 1 | -0/+13 |
| | | | | | | with an uninferable ``__call__`` method. Close PyCQA/pylint#2434 | ||||
* | Spelling fixes | Ville Skyttä | 2018-07-24 | 1 | -1/+1 |
| | |||||
* | Update the copyright noticesastroid-2.0 | Claudiu Popa | 2018-07-15 | 1 | -3/+13 |
| | |||||
* | Improve as_string output of operators, elif, with, return & docs | brendanator | 2018-07-05 | 1 | -1/+1 |
| | | | | | | | | | | | | | The precedence and associativity rules of operators are respected and parens are only wrapped around child nodes when needed A single If node inside the else block is output as `elif` Unneccesary parens in with statements are removed Unneccesary parens in tuple returns are removed Doc strings in classes and functions no longer get additional indenting | ||||
* | Adapt the ABCMeta test to take in account _py_abc | Claudiu Popa | 2018-06-04 | 1 | -1/+1 |
| | |||||
* | Remove some code that's always going to be the same now that we run on Python 3 | Claudiu Popa | 2018-06-04 | 1 | -1/+0 |
| | |||||
* | pyupgrade (#549) | Anthony Sottile | 2018-05-22 | 1 | -2/+2 |
| | |||||
* | Stop infer_call_result from being improperly called in tests | Bryce Guinta | 2018-02-17 | 1 | -1/+1 |
| | | | | | The calls previously implied that the result is being called from inside itself | ||||
* | Fix lint errors | Bryce Guinta | 2018-01-28 | 1 | -1/+1 |
| | | | | Removes an abundance of useless-supression errors | ||||
* | Assign __module__ and __qualname__ to class locals implicitly | Bryce Guinta | 2018-01-03 | 1 | -4/+9 |
| | | | | | This prevents __qualname__ and __module__, when called as locals in the class definition, from raising a false-positive no-member in pylint | ||||
* | When verifying duplicates classes in MRO, ignore on-the-fly generated classes | Claudiu Popa | 2017-12-15 | 1 | -0/+29 |
| | | | | Close PyCQA/pylint#1706 | ||||
* | Fix lint | Claudiu Popa | 2017-11-11 | 1 | -1/+0 |
| | |||||
* | Remove file_stream since it was slated for removal for 1.6 | Claudiu Popa | 2017-11-11 | 1 | -20/+7 |
| | |||||
* | Dunder class at method level is now inferred as the class of the method | Claudiu Popa | 2017-07-08 | 1 | -0/+33 |
| | | | | Close PyCQA/pylint#1328 | ||||
* | Don't raise DuplicateBaseError when classes at different locations are used | Claudiu Popa | 2017-07-08 | 1 | -1/+4 |
| | | | | | | | | | | For instance, one can implement a namedtuple base class, which gets reused on a class with the same name later on in the file. Until now, we considered these two classes as being the same, because they shared the name, but in fact they are different, being created at different locations and through different means. Close PyCQA/pylint#1458 | ||||
* | Fix lintastroid-1.5.2 | Claudiu Popa | 2017-04-17 | 1 | -2/+1 |
| | |||||
* | mro() can be computed for classes with old style classes in the hierarchy | Claudiu Popa | 2017-04-15 | 1 | -0/+27 |
| | |||||
* | Arguments node gained a new attribute, kwonlyargs_annotations, for holding ↵ | Claudiu Popa | 2017-04-12 | 1 | -1/+9 |
| | | | | the keyword-only args annotations | ||||
* | Mark __init_subclass__ as classmethod (#389) | Łukasz Rogalski | 2017-01-28 | 1 | -0/+11 |
| | |||||
* | Make ClassDefs support keyword arguments. (#384) | Derek Gustafson | 2017-01-22 | 1 | -0/+12 |
| | |||||
* | Fix some pylint errors over the code base. | Claudiu Popa | 2016-08-24 | 1 | -2/+0 |
| | |||||
* | Add `returns` into the proper order in FunctionDef._astroid_fields | Claudiu Popa | 2016-07-27 | 1 | -0/+12 |
| | | | | | The order is important, since it determines the last child, which in turn determines the last line number of a scoped node. | ||||
* | Even more granular copyrights (thanks to copyrite) | Claudiu Popa | 2016-07-22 | 1 | -2/+7 |
| | |||||
* | Keep a consistent copyright notice across the board. | Claudiu Popa | 2016-07-19 | 1 | -0/+2 |
| | |||||
* | New function, astroid.extract_node, exported out from astroid.test_utils. | Claudiu Popa | 2016-06-29 | 1 | -26/+26 |
| | |||||
* | Give priority to local special attributes for classes and modules | Claudiu Popa | 2016-06-05 | 1 | -4/+6 |
| | | | | | | For instance, a module can decide to redefine its __file__ attribute. Previously, this was defaulting to the file name itself, without taking in account local redefinitions. | ||||
* | Add test for slots and dict.keys. | Claudiu Popa | 2016-06-04 | 1 | -0/+12 |
| | |||||
* | Fix typos | Jakub Wilk | 2016-06-02 | 1 | -1/+1 |
| | |||||
* | Convert all files to new license header | Ceridwen | 2016-05-16 | 1 | -17/+3 |
| | |||||
* | imported_names() got replaced by public_names() | Claudiu Popa | 2016-02-20 | 1 | -3/+25 |
| | | | | | | | | | | | Our understanding of wildcard imports through __all__ was half baked to say at least, since we couldn't account for modifications of the list, which results in tons of false positives. Instead, we replaced it with public_names(), a method which returns all the names that are publicly available in a module, that is that don't start with an underscore, even though this means that there is a possibility for other names to be leaked out even though they are not present in the __all__ variable. | ||||
* | The slots() method conflates all the slots from the ancestors into a list of ↵ | Claudiu Popa | 2015-12-18 | 1 | -0/+27 |
| | | | | | | | | current and parent slots. We're doing this because this is the right semantics of slots, they get inherited, as long as each parent defines a __slots__ entry. | ||||
* | Cleanup pylint's warnings over astroid codebase | Claudiu Popa | 2015-12-14 | 1 | -5/+6 |
| | | | | | | | | | | Some of the messages were disabled in pylintrc, since they're not very useful for our case. Other parameters, such as the number of arguments / statements / attributes etc were configured so that they won't be too restrictive for our codebase, since making the code to respect them right now requires too much development changes, which is not justified by the end result. Closes issue #284. | ||||
* | Enable the warnings in tests through a context manager | Claudiu Popa | 2015-12-11 | 1 | -2/+2 |
| | | | | | | | | Previously, we were enabling blindly all the warnings in tests files through `warnings.simplefilter`, which had the side effect of not taking into account the values of the -W flag. This meant that warnings which should have been silenced, weren't, leading to a huge output when running the tests with Python 3.5. | ||||
* | relative_to_absolute_name will now raise TooManyLevelsError when a relative ↵ | Claudiu Popa | 2015-12-06 | 1 | -0/+13 |
| | | | | import is trying to access something beyond the top-level package. | ||||
* | Merge upstream changes | Ceridwen | 2015-11-06 | 1 | -1/+0 |
|\ | |||||
| * | Rename Uninferable and instantiate_class, fix broken tests, improve | Ceridwen | 2015-11-06 | 1 | -3/+3 |
| | | | | | | | | | | | | | | | | | | | | | | testing. * Rename YES to Uninferable * Rename instanciate_class to instantiate_class. * Use six in test_namedtuple_advanced_inference. * Fix test_file_from_module failure on PyPy. * Add enum34 to unittest_brain. * Add unittest_brain dependencies tox.ini. |