Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Correct infered to inferred | Claudiu Popa | 2019-05-20 | 1 | -12/+12 | |
| | ||||||
* | Exclude ``__dict__`` from ``attribute-defined-outside-init`` | Claudiu Popa | 2019-05-19 | 1 | -0/+3 | |
| | | | | Close #2909 | |||||
* | Style - Apply isort on all apllicable files | Pierre Sassoulas | 2019-03-20 | 1 | -16/+15 | |
| | ||||||
* | ``assigning-non-slot`` not emitted for classes with unknown base classes. | Claudiu Popa | 2019-03-11 | 1 | -35/+37 | |
| | | | | | | | | | 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 | |||||
* | Add missing check_messages() for visit_classdef in classes checks | Claudiu Popa | 2019-03-03 | 1 | -0/+12 | |
| | ||||||
* | Added a new check `class-variable-slots-conflict` | Claudiu Popa | 2019-03-03 | 1 | -10/+21 | |
| | | | | | This check is emitted when ``pylint`` finds a class variable that conflicts with a slot name, which would raise a ``ValueError`` at runtime. | |||||
* | Take into account `__class_getitem__` | Pascal Corpet | 2019-02-04 | 1 | -1/+1 | |
| | | | | | | | | 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 | |||||
* | Adding implicit-str-concat-in-sequence check (#1655) | Lucas Cimon | 2018-10-10 | 1 | -9/+9 | |
| | | | | | ``implicit-str-concat-in-sequence`` detects string concatenation inside lists, sets & tuples. It would warn on code such as `('a', 'b' 'c')`. | |||||
* | Reformat the code with black | Claudiu Popa | 2018-09-17 | 1 | -445/+634 | |
| | ||||||
* | Infer decorated methods when looking for method-hidden | Claudiu Popa | 2018-08-23 | 1 | -9/+21 | |
| | | | | Close #2369 | |||||
* | Stop protected-access exception for missing class attributes | Bryce Guinta | 2018-08-08 | 1 | -0/+2 | |
| | | | | Skip Uninferable values from getattr | |||||
* | Update copyright notices | Claudiu Popa | 2018-07-15 | 1 | -1/+7 | |
| | ||||||
* | Merge branch 'master' into fix_2177 | Sushobhit | 2018-06-22 | 1 | -1/+1 | |
|\ | ||||||
| * | Use as_string() to get the representation of an annotation, not name, which ↵ | Claudiu Popa | 2018-06-21 | 1 | -1/+1 | |
| | | | | | | | | can be missing. Close #2210 | |||||
* | | adapt existing test cases for useless-object-inheritance. | ssolanki | 2018-06-21 | 1 | -1/+1 | |
| | | | | | | | | | | | | | | | | | | | | adapt existing test/input test cases to new check. add some more positive test case for useless-object-inheritance msg code was in conflict with existing msg. adapt existing test cases for new checker. | |||||
* | | Add new checker useless-object-inheritance. | ssolanki | 2018-06-20 | 1 | -1/+8 | |
|/ | | | | Close #2177 | |||||
* | `mcs` as the first parameter of metaclass's `__new__` method was replaced by ↵ | Claudiu Popa | 2018-06-06 | 1 | -1/+1 | |
| | | | | | | `cls` Close #2028 | |||||
* | Fixed emitting ``useless-super-delegation`` when changing the default value ↵ | Ashley Whetter | 2018-06-02 | 1 | -2/+3 | |
| | | | | | | of keyword arguments Closes #2022 | |||||
* | Fixed method-hidden raised when assigned to data descriptors | Ashley Whetter | 2018-06-01 | 1 | -0/+8 | |
| | | | | Closes #1061 | |||||
* | Remove unused function | Claudiu Popa | 2018-05-26 | 1 | -9/+0 | |
| | ||||||
* | Kill YES in favour of Uninferable | Claudiu Popa | 2018-05-24 | 1 | -5/+5 | |
| | ||||||
* | pyupgrade (#2136) | Anthony Sottile | 2018-05-22 | 1 | -1/+1 | |
| | ||||||
* | Don't emit 'useless-super-delegation' if annotations are different | Ben Green | 2018-05-15 | 1 | -0/+11 | |
| | | | | Fixes #1923 | |||||
* | Fix lint errors caused by the new checker change | Claudiu Popa | 2018-04-02 | 1 | -3/+2 | |
| | ||||||
* | Spelling fixes | Ville Skyttä | 2018-01-30 | 1 | -1/+1 | |
| | ||||||
* | Rip some of the six imports from the codebase | Claudiu Popa | 2018-01-25 | 1 | -10/+9 | |
| | ||||||
* | Set max-returns to 11 | Nick Drozd | 2018-01-04 | 1 | -21/+16 | |
| | | | | | | Previously, the greatest number of return statements in a function was 15 (checkers.typecheck). 11 is the lowest I could get it without aggressive rewriting. | |||||
* | Regenerate copyright notices | Claudiu Popa | 2017-12-15 | 1 | -4/+16 | |
| | ||||||
* | useless-super-delegation takes into account default values for the current ↵ | hippo91 | 2017-09-30 | 1 | -0/+96 | |
| | | | | | implementation A method can reimplement a super method in order to provide a different default value, in which case we shouldn't emit ``useless-super-delegation``. | |||||
* | Skip the invalid-length-returned check when the return value is clearly an ↵ | Claudiu Popa | 2017-09-29 | 1 | -1/+8 | |
| | | | | int, but with an uninferable underlying value | |||||
* | Adding a check for ``inconsistent-return-statements`` inside function or ↵ | hippo91 | 2017-09-26 | 1 | -4/+4 | |
| | | | | | methods. (#1641) Close #1267 | |||||
* | Add a couple of Uninferable filters where we weren't using any | Claudiu Popa | 2017-08-15 | 1 | -2/+2 | |
| | ||||||
* | Fix line-too-long | Claudiu Popa | 2017-06-03 | 1 | -1/+2 | |
| | ||||||
* | Don't emit assigning-non-slot when reassigning the class with another class ↵ | Claudiu Popa | 2017-06-02 | 1 | -0/+12 | |
| | | | | that has the same layout. Close #1506 | |||||
* | Remove mentions of deprecated astroid node names (#1485) | Łukasz Rogalski | 2017-05-22 | 1 | -4/+4 | |
| | ||||||
* | Do not emit warning on type(self)._private_attribute access (#1288) | Łukasz Rogalski | 2017-02-05 | 1 | -7/+26 | |
| | | | Closes #1031 | |||||
* | Change the text of arguments-differ by making it more explicit | Claudiu Popa | 2016-12-30 | 1 | -1/+1 | |
| | ||||||
* | Take in consideration the dummy-rgx-variable when checking for different ↵ | Claudiu Popa | 2016-12-30 | 1 | -16/+32 | |
| | | | | parameters. Close #1041 | |||||
* | Fix formatting and use any() to simplify the check | Claudiu Popa | 2016-12-18 | 1 | -12/+22 | |
| | ||||||
* | Add new checker len-as-condition (#1154) | Alexander Todorov | 2016-11-29 | 1 | -1/+1 | |
| | | | | | | * Add new checker len-as-condition * Fix len(SEQUENCE) warnings discovered by new checker | |||||
* | Report when __slots__ is a simple string and not a non-string container (#1171) | Anthony Foglia | 2016-11-24 | 1 | -0/+5 | |
| | | | | | | * Report when __slots__ is a simple string and not a non-string container * Update ChangeLog | |||||
* | Don't try to access variables defined in a separate scope when checking for ↵ | Claudiu Popa | 2016-11-20 | 1 | -7/+26 | |
| | | | | protected-access. Close #1126 | |||||
* | Grammar fix | Claudiu Popa | 2016-07-23 | 1 | -1/+1 | |
| | ||||||
* | Exempt special methods from arguments-differ. Close #1042 | Claudiu Popa | 2016-07-23 | 1 | -1/+7 | |
| | ||||||
* | Do not emit useless-super-delegation when having extraneous arguments in the ↵ | Claudiu Popa | 2016-07-23 | 1 | -1/+25 | |
| | | | | call site. Close #1043 | |||||
* | Use ClassDef.instantiate_class() (#1040) | Florian Bruhin | 2016-07-23 | 1 | -1/+1 | |
| | | | | | | | | Otherwise we get this from astroid: .../pylint/pylint/checkers/classes.py:1112: PendingDeprecationWarning: ClassDef.instanciate_class() is deprecated and slated for removal in astroid 2.0, use ClassDef.instantiate_class() instead. instance = cls.instanciate_class() | |||||
* | Even more granular copyrights (thanks to copyrite) | Claudiu Popa | 2016-07-23 | 1 | -2/+8 | |
| | ||||||
* | Keep a consistent copyright notice across the board. | Claudiu Popa | 2016-07-19 | 1 | -0/+2 | |
| | | | | | This was changed automatically in #894, but apparently we need to have the copyright notice somewhere. | |||||
* | Do not check for useless-super-delegation if the function is decorated | Moises Lopez - https://www.vauxoo.com/ | 2016-07-17 | 1 | -0/+4 | |
| | ||||||
* | Uninferable now has a false default value, so don't check it explicitly. | Claudiu Popa | 2016-07-16 | 1 | -1/+1 | |
| |